فهرست منبع

Fix skinning precision issue on iOS

On iOS, by default the bones that are sampled from the bone texture look
like they are using mediump. This can result in noticeable jitter or
other more severe issues depending on the bone transformation matrix.

Fix this by explicitly declaring the sampler as highp.
Arseny Kapoulkine 6 سال پیش
والد
کامیت
e1827b1e37
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/renderers/shaders/ShaderChunk/skinning_pars_vertex.glsl.js

+ 1 - 1
src/renderers/shaders/ShaderChunk/skinning_pars_vertex.glsl.js

@@ -6,7 +6,7 @@ export default /* glsl */`
 
 	#ifdef BONE_TEXTURE
 
-		uniform sampler2D boneTexture;
+		uniform highp sampler2D boneTexture;
 		uniform int boneTextureSize;
 
 		mat4 getBoneMatrix( const in float i ) {