Questions tagged [shadermaterial]
24 questions
0
votes
0 answers
Add normalMap to ShaderMaterial
I am trying to add multiple textures on the same object in Three.js. I have a 3d T-shirt and the following elements as .png for the T-shirt textures:
The front, back and sleeves of the T-shirt:
The neck for the T-shirt:
And the normal map that…

vvalentina96
- 41
- 1
0
votes
1 answer
Implement lights and shadows in ShaderMaterial in Three.js r136
What is the current solution in r136 to blend lights, shadows and color in a ShaderMaterial ? I already found the solution for the fog support.
I found some examples in previous revision (r108) like this codesandbox.
Actually, I'm looking for this…

Sufhal
- 13
- 1
- 5
0
votes
1 answer
UNITY3D - Pink prefab because of BumpedDiffuse shader
I'm trying to download assetBundle from server and unzip it. All is working fine with Standard Shader Material (u can see it on the video).
But if material in assetBundle is Mobile/BumpedDiffuse so prefab instantiated with pink color like no…

Rotmayer
- 29
- 5
0
votes
0 answers
Theejs - Change texture on collada element with uses ShaderMaterial
So I have this Collada (dae) export from a 3d model application for creating packaging.
I've managed to import this model in my scene with
var loader = new THREE.ColladaLoader();
loader.load("model.dae", collada => {
…

NLAnaconda
- 1,534
- 3
- 14
- 38
0
votes
1 answer
Multi-map-channel models and textures in three.js
I am trying to use more than two map channels in three.js to assign textures to my models. To my surprise no native materials in three.js support multiple sets of uvs.. Thus I have to use ShaderMaterial and write my own vertex/fragment shaders to…

AGogel
- 21
- 5
0
votes
1 answer
How to maintain the glow effect of a json model rotating in three.js scene?
I add a json model with glow effect into the scene.
As follows:
I try to rotate the json model automatically.
However, it looks weird when it is rotating.
The glow effect of the model does not work.
I assume that the position of the json model…

Kevin Hsiao
- 2,281
- 2
- 10
- 18
0
votes
0 answers
THREE.js custom shader with predefined lights
I have following BlendShader made based on THREE.BlendShader and AlteredQualia JupiterShader. I am struggling with adding Directional Light to the material with this shader. I have read this tutorial but it still does render fully lit object,…

mtx
- 1,196
- 2
- 17
- 41
0
votes
0 answers
Custom ShaderMaterial map issue
I am trying to create a custom ShaderMaterial reusing the ShaderChunks but seem to have a problem when setting the map parameter.
In my custom shader, when I load a texture and set the materials map and uniforms.map.value value to the texture it…

2pha
- 9,798
- 2
- 29
- 43
-2
votes
1 answer
Three.js - How to Rotate Shader Material?
My problem is trying to get the sky to rotate on its z-axis. For example if I rotate the sky by 180 degrees the shadow from the sun light should display in the opposite direction.
The code sandbox:…

akexinad
- 25
- 5