Tag Info

New answers tagged

0

WebGL is based on OpenGL ES. Precision qualifiers (like "precision mediump float;") were introduced in OpenGL ES to optimize performance on embedded systems with lower hardware (like smartphones). In desktop OpenGL these precision qualifier do nothing. They only exist for compatibillity to OpenGL ES / WebGL. Source: ...


1

You can interpolate tangents just like you would everything else, there should be no problems with that, as long as your mesh (morph target) count is low - I think there was a rather low limit on how many attribute slots you can use (GLES2.0 says there must be at least 8, Chrome seems to have 16). An alternative (if you can take the pressure on the pixel ...


-1

This is a late answer but here is a sample of what you would do Vertex shader: attribute vec3 aVertexPosA; attribute vec3 aVertexPosB; attribute vec2 aVertexTex; attribute vec3 aVertexNormA; attribute vec3 aVertexNormB; uniform float morphTime; varying vec3 vVertexNorm; varying vec2 vVertexTex; void main(void){ vec4 vertexPos = vec4(mix(aVertexPosB, ...


0

Disclaimer. My first intention was to update existing answer, but then I understood that I totally rewrote it. That's why I am creating new one. Yes, it's possible. The communication is possible between the browser and unity in both directions. In the unity documentation this topic is well described. So it's possible to create a general function that will ...


2

I don't think . But you can try to call a javacript like this (using Application.ExternalEval(.. ): <script type="text/javascript" language="javascript"> <!-- //initializing the WebPlayer var u = new UnityObject2(); u.initPlugin(jQuery("#unityPlayer")[0], "Example.unity3d"); function SaySomethingToUnity() { u.getUnity().SendMessage("MyObject", ...



Top 50 recent answers are included