Jump to content

Failed to execute 'uniformMatrix4fv'


dcversus
 Share

Recommended Posts

Hi
I'm new in babylonjs. Recently I encountered a problem while creating the game. I create a model in blender and export this to .babylon format, all works fine, but when I want to add a reflection (in water) to this model game fails this error:
babylon.2.0.js:4 Uncaught TypeError: Failed to execute 'uniformMatrix4fv' on 'WebGLRenderingContext': No function was found that matched the signature provided.

Water init code (i use water from WORLDMONGER)

  water = BABYLON.Mesh.CreateGround("water", 1024, 1024, 1, scene, false);  var waterMaterial = new WORLDMONGER.WaterMaterial("water", scene, light);  waterMaterial.refractionTexture.renderList.push(ground);  waterMaterial.reflectionTexture.renderList.push(skybox);  water.visibility = 0.5;  water.material = waterMaterial;

After adding my mesh (after it loading)

water.material.reflectionTexture.renderList.push(players[0].meshModel);

In attach model that I use. In advance thanks. 

footman.zip

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...