Kaynağa Gözat

ATC Example: consistently set thickness (#21390)

* make ATC wireframe lines a consistent thickness

* Add spacing, variable rename

* fix screenshot

* consistently set the material thickness

* update screenshot from new variable change
Garrett Johnson 4 yıl önce
ebeveyn
işleme
f4a66580ae

BIN
examples/screenshots/webgl_materials_wireframe.jpg


+ 1 - 1
examples/webgl_materials_wireframe.html

@@ -164,7 +164,7 @@
 
 					const material3 = new THREE.ShaderMaterial( {
 
-						uniforms: { 'thickness': { value: API.thickness * 0.01 } },
+						uniforms: { 'thickness': { value: API.thickness } },
 						vertexShader: document.getElementById( 'vertexShaderATC' ).textContent,
 						fragmentShader: document.getElementById( 'fragmentShaderATC' ).textContent,
 						side: THREE.DoubleSide,