float3 vNormal = ... (normalized world-space normal with normalmapping applied) float3 vViewPixel = PixelWorldCoord - ViewWorldCoord; float3 vReflected = reflect(vViewPixel, vNormal); float3 ReflectionColor = texCUBE(smpCube, vReflected).rgb;
Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de