Skip to main content
1 vote
2 answers
138 views

I'm trying to make my own shader for a THREE.js project I'm working on, and I wanted to make a GLSL shader as part of it for one of the meshes in my scene. However, despite writing very basic code for ...
Gift G.'s user avatar
  • 69
0 votes
1 answer
31 views

I am trying to create a flag like animation by constructing a vertex shader that takes inputs of uFrequency and uTime. I got the vertexshader right but the animation while change in seconds isn't ...
Shirish Shakya's user avatar
2 votes
0 answers
152 views

I am very new in Threejs as well as in ShaderMaterial. And also zero knowledge in GLSL or C/C++. How to convert the ShaderToy code into Threejs uniforms, vertexShader, fragmentShader? I want to make ...
Pallab's user avatar
  • 165
1 vote
0 answers
93 views

I'm trying to integrate the 3d object found on this codrops demo: https://tympanus.net/Tutorials/ShadersOnScroll/. I'm trying to get the same effect but I would like the object to stay the same color ...
user823415's user avatar
1 vote
0 answers
137 views

Think of my question as a more complicated version of this question here: Three.js, sharing ShaderMaterial between meshes but with different uniform sets tl;dr: I'm relying on a skin shader from ...
R-yurew's user avatar
  • 102
0 votes
0 answers
298 views

I am trying to add texture for each face of BoxGeometry. I have tried passing an array of ShaderMaterial object into the mesh but its not working. createMaterials(texture){ return new ShaderMaterial({...
Satyam Raikwar's user avatar
0 votes
0 answers
976 views

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 ...
vvalentina96's user avatar
2 votes
1 answer
1k views

Here is my problem, my project is generated from create-react-app, followed by some @react-three/fiber and glsl dependencies, I render simple planeBufferGeometry and for the material I use ...
Reynald Lamury's user avatar
0 votes
1 answer
1k views

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 ...
Sufhal's user avatar
  • 35
2 votes
1 answer
2k views

Coded using: Using ThreeJS v0.130.1 Framework: Angular 12, but that's not relevant to the issue. Testing on Chrome browser. I am building an application that gets more than 100K points. I use these ...
Pawan Pillai's user avatar
  • 2,085
0 votes
1 answer
93 views

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 ...
Rotmayer's user avatar
-2 votes
1 answer
1k views

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's user avatar
0 votes
0 answers
91 views

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("...
NLAnaconda's user avatar
  • 1,615
1 vote
1 answer
723 views

The docs for scene say a color or texture can be used for scene.background. I would like to use a ShaderMaterial with my own custom shaders. How can I do this? Specifically, I want to paint a color ...
dugla's user avatar
  • 12.9k
1 vote
1 answer
883 views

I am trying to test a simple dot shader in ThreeJS made by 2pha : https://2pha.com/demos/threejs/shaders/simple_dots.html It seems to not work properly for metaballs using Marching Cubes : https://...
compmonks's user avatar
  • 677

15 30 50 per page