Kaynağa Gözat

TiltLoader: Use webp for textures.

Mr.doob 4 yıl önce
ebeveyn
işleme
b467f16cd9

+ 1 - 1
examples/jsm/loaders/TiltLoader.js

@@ -380,7 +380,7 @@ const loader = new TextureLoader().setPath( './textures/tiltbrush/' );
 const shaders = {
 const shaders = {
 	'Light': {
 	'Light': {
 		uniforms: {
 		uniforms: {
-			mainTex: { value: loader.load( 'Light.png' ) },
+			mainTex: { value: loader.load( 'Light.webp' ) },
 			alphaTest: { value: 0.067 },
 			alphaTest: { value: 0.067 },
 			emission_gain: { value: 0.45 },
 			emission_gain: { value: 0.45 },
 			alpha: { value: 1 },
 			alpha: { value: 1 },

BIN
examples/textures/tiltbrush/Light.png


BIN
examples/textures/tiltbrush/Light.webp