소스 검색

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