Sha256: 9328bd59580e5a6986c8dabc140601c2bc333a139ea101e4e329be420b84e9a1

Contents?: true

Size: 681 Bytes

Versions: 21

Compression:

Stored size: 681 Bytes

Contents

#ifdef USE_MORPHTARGETS

	vec3 morphed = vec3( 0.0 );
	morphed += ( morphTarget0 - position ) * morphTargetInfluences[ 0 ];
	morphed += ( morphTarget1 - position ) * morphTargetInfluences[ 1 ];
	morphed += ( morphTarget2 - position ) * morphTargetInfluences[ 2 ];
	morphed += ( morphTarget3 - position ) * morphTargetInfluences[ 3 ];

	#ifndef USE_MORPHNORMALS

	morphed += ( morphTarget4 - position ) * morphTargetInfluences[ 4 ];
	morphed += ( morphTarget5 - position ) * morphTargetInfluences[ 5 ];
	morphed += ( morphTarget6 - position ) * morphTargetInfluences[ 6 ];
	morphed += ( morphTarget7 - position ) * morphTargetInfluences[ 7 ];

	#endif

	morphed += position;

#endif

Version data entries

21 entries across 21 versions & 2 rubygems

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