Explorar o código

WebGPUTextures: Fix typo.

Mugen87 %!s(int64=5) %!d(string=hai) anos
pai
achega
551adcb62b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/jsm/renderers/webgpu/WebGPUTextures.js

+ 1 - 1
examples/jsm/renderers/webgpu/WebGPUTextures.js

@@ -488,7 +488,7 @@ class WebGPUTextures {
 
 
 	_getBytesPerTexel( format ) {
 	_getBytesPerTexel( format ) {
 
 
-		if ( format === GPUTextureFormat.RGBA8Unorm || format === GPUTextureFormat.RGBA8Unorm ) return 4;
+		if ( format === GPUTextureFormat.RGBA8Unorm || format === GPUTextureFormat.RGBA8UnormSRGB ) return 4;
 		if ( format === GPUTextureFormat.RGBA16Float ) return 8;
 		if ( format === GPUTextureFormat.RGBA16Float ) return 8;
 		if ( format === GPUTextureFormat.RGBA32Float ) return 16;
 		if ( format === GPUTextureFormat.RGBA32Float ) return 16;
 
 

粤ICP备19079148号