19 years, 10 months ago
Highlights
Community contributions featuredIf you use a loop with a fixed number of iterations, then using tex2Dgrad is unnecessary because the compiler will unroll the loop. However if you want early termination or a va…
19 years, 10 months ago
19 years, 11 months ago
You can do two passes for leaves: 1) render the opaque parts by using alpha testing where alpha is greater then some threshold T (say 128). Make sure ztest and zwrite are both &…
19 years, 11 months ago
19 years, 11 months ago
When generating your ambient cube you should render LightMap * Albedo. That way, for example, if you have a white light and a red wall the reflected light will be red. This will…
19 years, 11 months ago
Latest Activity
See all in DiscussionsIf you use a loop with a fixed number of iterations, then using tex2Dgrad is unnecessary because the compiler will …
19 years, 10 months ago
You can do two passes for leaves: 1) render the opaque parts by using alpha testing where alpha is greater …
19 years, 11 months ago
When generating your ambient cube you should render LightMap * Albedo. That way, for example, if you have a white …
19 years, 11 months ago