Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atmosphere material Skinned Animation #9

Open
bisiyo opened this issue Jun 13, 2017 · 1 comment
Open

Atmosphere material Skinned Animation #9

bisiyo opened this issue Jun 13, 2017 · 1 comment

Comments

@bisiyo
Copy link

bisiyo commented Jun 13, 2017

Hello,
I want to use the atmosphere material for a skinned animation but it does not work.
I already write skinning : true, but I think I have to change something in the vertexShader,
Do you know what I have to do ?

Thank you

@bisiyo
Copy link
Author

bisiyo commented Jun 13, 2017

var glow2 = THREEx.createAtmosphereMaterial();
glow2.uniforms.glowColor.value = new THREE.Color('white');
glow2.uniforms.coeficient.value = 0.1;
glow2.uniforms.power.value = 4.7;
glow2.morphTargets = true;
glow2.morphNormals = true;

loader.load('./models/uv.json', function(geometry) {
geom = geometry;
geom.verticesNeedUpdate = true;
character = new THREE.SkinnedMesh(geom, glow2);
}

The texture is applying but in the pose mode only. The animation do not play.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant