Hi! I use sss shader in my project, but how i can use bumpMap with this?
Also i would like to set environment map, is it possible?
TranslucentShader
is a custom shader and not derived from one of the build-in materials. Hence, it does not provide all material parameters like bump and environment maps. So if you need these features, you have to enhance the respective shader source code:
/**
* @author daoshengmu / http://dsmu.me/
*
* ------------------------------------------------------------------------------------------
* Subsurface Scattering shader
* Base on GDC 2011 – Approximating Translucency for a Fast, Cheap and Convincing Subsurface Scattering Look
* https://colinbarrebrisebois.com/2011/03/07/gdc-2011-approximating-translucency-for-a-fast-cheap-and-convincing-subsurface-scattering-look/
*------------------------------------------------------------------------------------------
*/
THREE.TranslucentShader = {
uniforms: THREE.UniformsUtils.merge( [
THREE.UniformsLib[ "common" ],
THREE.UniformsLib[ "lights" ],
{
"color": { value: new THREE.Color( 0xffffff ) },
"diffuse": { value: new THREE.Color( 0xffffff ) },
"specular": { value: new THREE.Color( 0xffffff ) },
This file has been truncated. show original
1 Like
Oh, ok .Thank you @Mugen87