Sha256: 035351d295e1874c9616a4d410dbb0cb1521c29ca1ed112ba0f9f2e04a6dc3a1
Contents?: true
Size: 472 Bytes
Versions: 21
Compression:
Stored size: 472 Bytes
Contents
#ifdef USE_SHADOWMAP uniform sampler2D shadowMap[ MAX_SHADOWS ]; uniform vec2 shadowMapSize[ MAX_SHADOWS ]; uniform float shadowDarkness[ MAX_SHADOWS ]; uniform float shadowBias[ MAX_SHADOWS ]; in vec4 vShadowCoord[ MAX_SHADOWS ]; float unpackDepth( const in vec4 rgba_depth ) { const vec4 bit_shift = vec4( 1.0 / ( 256.0 * 256.0 * 256.0 ), 1.0 / ( 256.0 * 256.0 ), 1.0 / 256.0, 1.0 ); float depth = dot( rgba_depth, bit_shift ); return depth; } #endif
Version data entries
21 entries across 21 versions & 2 rubygems