同樣,類似於反射,折射是通過折射向量來採樣立方體紋理的,glsl也爲折射 ... vec3 R = reflect(I, N); vec4 reflectedColor = textureCube(cubemap, ...
確定! 回上一頁