瀏覽代碼

TiltLoader: Use webp for textures.

Mr.doob 4 年之前
父節點
當前提交
b467f16cd9
共有 3 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/jsm/loaders/TiltLoader.js
  2. 二進制
      examples/textures/tiltbrush/Light.png
  3. 二進制
      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 },

二進制
examples/textures/tiltbrush/Light.png


二進制
examples/textures/tiltbrush/Light.webp