Skip to content

Commit

Permalink
Add comment, explicitly set 'z' component to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Vargas committed Jan 16, 2020
1 parent e671ff1 commit f358e8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Shaders/PointPrimitiveCollectionVS.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ void main()
float nearSq = distanceDisplayConditionAndDisableDepth.x;
float farSq = distanceDisplayConditionAndDisableDepth.y;
if (lengthSq < nearSq || lengthSq > farSq) {
positionEC.xyz = vec3(1.0);
// push vertex behind camera to force it to be clipped
positionEC.xyz = vec3(0.0, 0.0, 1.0);
}
#endif

Expand Down

0 comments on commit f358e8e

Please sign in to comment.