Преглед на файлове

TiltLoader: Use webp for textures.

Mr.doob преди 4 години
родител
ревизия
b467f16cd9
променени са 3 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      examples/jsm/loaders/TiltLoader.js
  2. BIN
      examples/textures/tiltbrush/Light.png
  3. BIN
      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 },

BIN
examples/textures/tiltbrush/Light.png


BIN
examples/textures/tiltbrush/Light.webp