Sha256: 8b1df0cce15d9dea8243394d7c67223caf7fa4cc14d79d61bfe4ce101cc96be4

Contents?: true

Size: 453 Bytes

Versions: 21

Compression:

Stored size: 453 Bytes

Contents

#ifdef USE_SKINNING

	#ifdef USE_MORPHTARGETS

	vec4 skinVertex = bindMatrix * vec4( morphed, 1.0 );

	#else

	vec4 skinVertex = bindMatrix * vec4( position, 1.0 );

	#endif

	vec4 skinned = vec4( 0.0 );
	skinned += boneMatX * skinVertex * skinWeight.x;
	skinned += boneMatY * skinVertex * skinWeight.y;
	skinned += boneMatZ * skinVertex * skinWeight.z;
	skinned += boneMatW * skinVertex * skinWeight.w;
	skinned  = bindMatrixInverse * skinned;

#endif

Version data entries

21 entries across 21 versions & 2 rubygems

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