Skip to content

Commit

Permalink
d3d9 doesn't like shader literals 1e9 or larger.
Browse files Browse the repository at this point in the history
  • Loading branch information
robcupisz committed Feb 8, 2015
1 parent 25dc4a6 commit 560d136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shared.cginc
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ inline bool Cube(float3 org, float3 dir, out float tnear, out float tfar)
}

// frustum inscribed in a unit cube centered at 0, apex on x
#define INF 1.0e38
#define INF 9.9e8
inline bool Frustum(float3 org, float3 dir, float apex, out float near, out float far)
{
float2 dirf = float2(0.5 - apex, 0.5);
Expand Down

0 comments on commit 560d136

Please sign in to comment.