ソースを参照

bugfix parallax after set specularTexture

ncannasse 7 年 前
コミット
558bee99af
1 ファイル変更2 行追加0 行削除
  1. 2 0
      h3d/mat/PbrMaterial.hx

+ 2 - 0
h3d/mat/PbrMaterial.hx

@@ -194,6 +194,8 @@ class PbrMaterial extends Material {
 		if( ps != null ) {
 			ps.heightMap = t;
 			ps.heightMapChannel = A;
+			mainPass.removeShader(ps);
+			mainPass.addShader(ps);
 		}
 
 		return t;