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

Version Path
mittsu-opengl-0.5.1 lib/mittsu/opengl/shader/chunks/shadowmap_pars_fragment.glsl
mittsu-0.4.1 lib/mittsu/renderers/shaders/shader_chunk/shadowmap_pars_fragment.glsl
mittsu-opengl-0.5.0 lib/mittsu/opengl/shader/chunks/shadowmap_pars_fragment.glsl
mittsu-0.4.0 lib/mittsu/renderers/shaders/shader_chunk/shadowmap_pars_fragment.glsl
mittsu-0.3.3 lib/mittsu/renderers/shaders/shader_chunk/shadowmap_pars_fragment.glsl
mittsu-0.3.2 lib/mittsu/renderers/shaders/shader_chunk/shadowmap_pars_fragment.glsl
mittsu-0.3.1 lib/mittsu/renderers/shaders/shader_chunk/shadowmap_pars_fragment.glsl
mittsu-0.3.0 lib/mittsu/renderers/shaders/shader_chunk/shadowmap_pars_fragment.glsl
mittsu-0.2.4 lib/mittsu/renderers/shaders/shader_chunk/shadowmap_pars_fragment.glsl
mittsu-0.2.3 lib/mittsu/renderers/shaders/shader_chunk/shadowmap_pars_fragment.glsl
mittsu-0.2.2 lib/mittsu/renderers/shaders/shader_chunk/shadowmap_pars_fragment.glsl
mittsu-0.2.1 lib/mittsu/renderers/shaders/shader_chunk/shadowmap_pars_fragment.glsl
mittsu-0.2.0 lib/mittsu/renderers/shaders/shader_chunk/shadowmap_pars_fragment.glsl
mittsu-0.1.7 lib/mittsu/renderers/shaders/shader_chunk/shadowmap_pars_fragment.glsl
mittsu-0.1.6 lib/mittsu/renderers/shaders/shader_chunk/shadowmap_pars_fragment.glsl
mittsu-0.1.5 lib/mittsu/renderers/shaders/shader_chunk/shadowmap_pars_fragment.glsl
mittsu-0.1.4 lib/mittsu/renderers/shaders/shader_chunk/shadowmap_pars_fragment.glsl
mittsu-0.1.3 lib/mittsu/renderers/shaders/shader_chunk/shadowmap_pars_fragment.glsl
mittsu-0.1.2 lib/mittsu/renderers/shaders/shader_chunk/shadowmap_pars_fragment.glsl
mittsu-0.1.1 lib/mittsu/renderers/shaders/shader_chunk/shadowmap_pars_fragment.glsl