Use textureLod fo GLSL shaders
This commit is contained in:
parent
7805b8bbe0
commit
f68c272695
4 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ void main()
|
|||
cR = vec3(ubo.invModel * vec4(cR, 0.0));
|
||||
cR.y *= -1.0;
|
||||
|
||||
vec4 color = texture(samplerCubeMapArray, vec4(cR, ubo.cubeMapIndex), ubo.lodBias);
|
||||
vec4 color = textureLod(samplerCubeMapArray, vec4(cR, ubo.cubeMapIndex), ubo.lodBias);
|
||||
|
||||
vec3 N = normalize(inNormal);
|
||||
vec3 L = normalize(inLightVec);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue