Sfoglia il codice sorgente

MaterialNode: Honor `emissiveIntensity`. (#28924)

* MaterialNode: Honor `emissiveIntensity`.

* E2E: Update screenshot.
Michael Herzog 1 anno fa
parent
commit
216398f77b

BIN
examples/screenshots/webgpu_loader_gltf_anisotropy.jpg


BIN
examples/screenshots/webgpu_postprocessing_pixel.jpg


+ 2 - 1
src/nodes/accessors/MaterialNode.js

@@ -158,7 +158,8 @@ class MaterialNode extends Node {
 
 		} else if ( scope === MaterialNode.EMISSIVE ) {
 
-			const emissiveNode = this.getColor( scope );
+			const emissiveIntensityNode = this.getFloat( 'emissiveIntensity' );
+			const emissiveNode = this.getColor( scope ).mul( emissiveIntensityNode );
 
 			if ( material.emissiveMap && material.emissiveMap.isTexture === true ) {