c75 Posted April 5, 2017 Share Posted April 5, 2017 Seems demo from this page does not work properly. https://doc.babylonjs.com/extensions/shadowonly Demo link: http://babylonjs-playground.com/#OBGRK#31 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted April 5, 2017 Share Posted April 5, 2017 Indeed, one can see in the console, shader compilation errors. Quote Link to comment Share on other sites More sharing options...
Borislav Posted April 5, 2017 Share Posted April 5, 2017 Check it again. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted April 5, 2017 Share Posted April 5, 2017 Quote Check it again. babylon.js:3 BJS - [13:03:01]: Defines: #define NORMAL #define NUM_BONE_INFLUENCERS 0 #define BonesPerMesh 0 #define LIGHT0 #define DIRLIGHT0 #define SHADOW0 #define SHADOWESM0 #define SPECULARTERM #define SHADOWS #define SHADOWFULLFLOAT t._ErrorEnabled @ babylon.js:3 babylon.js:3 BJS - [13:03:01]: Error: ERROR: 0:421: 'specularBase' : undeclared identifier ERROR: 0:421: 'assign' : cannot convert from 'highp 3-component vector of float' to 'float' Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 5, 2017 Share Posted April 5, 2017 Works for me...can you try to clear your cache? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted April 5, 2017 Share Posted April 5, 2017 Even empty my cache, I have it in the console. Quote babylon.js:3 BJS - [18:33:33]: Defines: #define NORMAL #define NUM_BONE_INFLUENCERS 0 #define BonesPerMesh 0 #define LIGHT0 #define DIRLIGHT0 #define SHADOW0 #define SHADOWESM0 #define SPECULARTERM #define SHADOWS #define SHADOWFULLFLOAT t._ErrorEnabled @ babylon.js:3 Effect._prepareEffect @ babylon.js:17 (anonymous) @ babylon.js:17 Effect._processShaderConversion @ babylon.js:17 (anonymous) @ babylon.js:17 Effect._processIncludes @ babylon.js:17 (anonymous) @ babylon.js:17 Effect._loadFragmentShader @ babylon.js:17 (anonymous) @ babylon.js:17 Effect._processShaderConversion @ babylon.js:17 (anonymous) @ babylon.js:17 Effect._processIncludes @ babylon.js:17 (anonymous) @ babylon.js:17 Effect._loadVertexShader @ babylon.js:17 Effect @ babylon.js:17 n.createEffect @ babylon.js:5 t.isReady @ babylon.shadowOnlyMaterial.min.js:1 r.render @ babylon.js:14 t.render @ babylon.js:15 t.renderSorted @ babylon.js:11 t.renderTransparentSorted @ babylon.js:11 t.render @ babylon.js:11 t.render @ babylon.js:11 r._renderForCamera @ babylon.js:13 r._processSubCameras @ babylon.js:13 r.render @ babylon.js:13 (anonymous) @ index.js:194 n._renderLoop @ babylon.js:4 babylon.js:3 BJS - [18:33:33]: Error: ERROR: 0:421: 'specularBase' : undeclared identifier ERROR: 0:421: 'assign' : cannot convert from 'highp 3-component vector of float' to 'float' Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 5, 2017 Share Posted April 5, 2017 Just tried with edge, chrome and firefox...no issue we are talking about this demo right? http://www.babylonjs.com/Demos/SelfShadowing/ Quote Link to comment Share on other sites More sharing options...
Dad72 Posted April 5, 2017 Share Posted April 5, 2017 No, this link: http://babylonjs-playground.com/#OBGRK#31 c75 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 5, 2017 Share Posted April 5, 2017 ok lol I've just seen we were not talking about the same page...will fix it c75 1 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted April 5, 2017 Share Posted April 5, 2017 Yes on your link, that works well. Quote Link to comment Share on other sites More sharing options...
c75 Posted April 5, 2017 Author Share Posted April 5, 2017 3 minutes ago, Deltakosh said: Just tried with edge, chrome and firefox...no issue we are talking about this demo right? http://www.babylonjs.com/Demos/SelfShadowing/ no, another demo Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 5, 2017 Share Posted April 5, 2017 Fixed: http://babylonjs-playground.com/#1KF7V1 I'll update the doc c75 and Dad72 2 Quote Link to comment Share on other sites More sharing options...
c75 Posted April 5, 2017 Author Share Posted April 5, 2017 4 minutes ago, Deltakosh said: Fixed: http://babylonjs-playground.com/#1KF7V1 I'll update the doc @Deltakosh Thank you very much! You're best!!! GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.