Relative Content

Tag Archive for three.jswebgl

Clearing multiple attachments on a target with different colors in three.js

I make a WebGLTarget with several attachments. I would like to clear them with different colors. So far the only solution i found was provided by ChatGPT and it basically does it on the webgl level via gl. I know that for a long time this was a valid approach to do certain things like stencil buffer so this kinda makes sense, but if there is a built in solution i would prefer that.

Three.js vs WebGL

I am trying to learn to make three-dimensional objects using HTML, CSS, and JavaScript and I am wondering which one is better to learn for an intermediate knowledge of JavaScript.