private TextReplaceJsModifyAction CreateJsModifyAction_RenderTexUnitsByMeshIndex() { var jsModifyAction = new TextReplaceJsModifyAction( "/modelviewer/viewer/viewer.min.js$", new[] { "ZamModelViewer.Wow.TexUnit=function(r)", "draw:function(){" }, "", "if (window.g___visibleMeshIndex != undefined && this.meshIndex != window.g___visibleMeshIndex) return;" ); return(jsModifyAction); }
private TextReplaceJsModifyAction CreateJsModifyAction_TestTextReplace() { var jsModifyAction = new TextReplaceJsModifyAction( "/modelviewer/viewer/viewer.min.js$", new[] { "Wow.AnimatedQuat.getValue(self.rotation,anim.index,time,self.tmpQuat);" }, "mat4.fromQuat(self.tmpMat,self.tmpQuat);mat4.transpose(self.tmpMat,self.tmpMat);", "quat.invert(self.tmpQuat, self.tmpQuat); mat4.fromQuat(self.tmpMat,self.tmpQuat);" ); return(jsModifyAction); }