Sha256: c0c0fbcd86da07ec0d91b08955361b34246b4660f21c3a149d56a80c1bb4b307

Contents?: true

Size: 431 Bytes

Versions: 21

Compression:

Stored size: 431 Bytes

Contents

#if defined( USE_ENVMAP ) && ! defined( USE_BUMPMAP ) && ! defined( USE_NORMALMAP ) && ! defined( PHONG )

	vec3 worldNormal = transformDirection( objectNormal, modelMatrix );

	vec3 cameraToVertex = normalize( worldPosition.xyz - cameraPosition );

	#ifdef ENVMAP_MODE_REFLECTION

		vReflect = reflect( cameraToVertex, worldNormal );

	#else

		vReflect = refract( cameraToVertex, worldNormal, refractionRatio );

	#endif

#endif

Version data entries

21 entries across 21 versions & 2 rubygems

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