Jelajahi Sumber

TiltLoader: Use webp for textures.

Mr.doob 4 tahun lalu
induk
melakukan
b467f16cd9
3 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      examples/jsm/loaders/TiltLoader.js
  2. TEMPAT SAMPAH
      examples/textures/tiltbrush/Light.png
  3. TEMPAT SAMPAH
      examples/textures/tiltbrush/Light.webp

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

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

TEMPAT SAMPAH
examples/textures/tiltbrush/Light.png


TEMPAT SAMPAH
examples/textures/tiltbrush/Light.webp