parent
6c7f72f0bd
commit
3ecc0d2e1f
4 changed files with 2 additions and 2 deletions
|
|
@ -26,6 +26,6 @@ void main()
|
||||||
outLightVec = normalize(ubo.lightPos.xyz - outEyePos);
|
outLightVec = normalize(ubo.lightPos.xyz - outEyePos);
|
||||||
|
|
||||||
// Clip against reflection plane
|
// Clip against reflection plane
|
||||||
vec4 clipPlane = vec4(0.0, -1.0, 0.0, 1.5);
|
vec4 clipPlane = vec4(0.0, -1.0, 0.0, 0.0);
|
||||||
gl_ClipDistance[0] = dot(vec4(inPos, 1.0), clipPlane);
|
gl_ClipDistance[0] = dot(vec4(inPos, 1.0), clipPlane);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -37,7 +37,7 @@ VSOutput main(VSInput input)
|
||||||
output.LightVec = normalize(ubo.lightPos.xyz - output.EyePos);
|
output.LightVec = normalize(ubo.lightPos.xyz - output.EyePos);
|
||||||
|
|
||||||
// Clip against reflection plane
|
// Clip against reflection plane
|
||||||
float4 clipPlane = float4(0.0, -1.0, 0.0, 1.5);
|
float4 clipPlane = float4(0.0, -1.0, 0.0, 0.0);
|
||||||
output.ClipDistance = dot(input.Pos, clipPlane);
|
output.ClipDistance = dot(input.Pos, clipPlane);
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue