Newer
Older
HuangJiPC / public / static / three / src / renderers / shaders / ShaderChunk / project_vertex.glsl.js
@zhangdeliang zhangdeliang on 21 Jun 239 bytes update
export default /* glsl */`
vec4 mvPosition = vec4( transformed, 1.0 );

#ifdef USE_INSTANCING

	mvPosition = instanceMatrix * mvPosition;

#endif

mvPosition = modelViewMatrix * mvPosition;

gl_Position = projectionMatrix * mvPosition;
`;