5 code results in GarageGames/Torque3D or view all results on GitHub
| 27 | uniform sampler2D backBuffer; |
| 28 | |
| 29 | uniform vec3 camForward; |
| 30 | uniform vec3 lightDirection; |
| 31 | uniform vec2 screenSunPos; |
| 32 | uniform vec2 oneOverTargetSize; |
| … | |
| 64 | // Calculate vector from pixel to light source in screen space. |
| 65 | half2 deltaTexCoord = half2( texCoord.xy - screenSunPos ); |
GLSL
Showing the top two matches
Last indexed | 27 | uniform sampler2D backBuffer; |
| 28 | |
| 29 | uniform vec3 camForward; |
| 30 | uniform vec3 lightDirection; |
| 31 | uniform vec2 screenSunPos; |
| 32 | uniform vec2 oneOverTargetSize; |
| … | |
| 64 | // Calculate vector from pixel to light source in screen space. |
| 65 | half2 deltaTexCoord = half2( texCoord.xy - screenSunPos ); |
GLSL
Showing the top two matches
Last indexed | 32 | uniform float density; |
| 33 | uniform float2 screenSunPos; |
| 34 | uniform float2 oneOverTargetSize; |
| 35 | uniform float weight; |
| 36 | uniform float decay; |
| … | |
| 59 | // Calculate vector from pixel to light source in screen space. |
| 60 | half2 deltaTexCoord = (half2)( texCoord.xy - screenSunPos ); |
| 61 | |
| 62 | // Divide by number of samples and scale by control factor. |
HLSL
Showing the top two matches
Last indexed | 32 | uniform float density; |
| 33 | uniform float2 screenSunPos; |
| 34 | uniform float2 oneOverTargetSize; |
| 35 | uniform float weight; |
| 36 | uniform float decay; |
| … | |
| 59 | // Calculate vector from pixel to light source in screen space. |
| 60 | half2 deltaTexCoord = (half2)( texCoord.xy - screenSunPos ); |
| 61 | |
| 62 | // Divide by number of samples and scale by control factor. |
HLSL
Showing the top two matches
Last indexed