Jump to content

[solved] warrning about standardmaterial and custommaterial developing


Recommended Posts

hi @Deltakosh

i saw some main uniform   ( like vDiffuseUV ) is changed in standardMaterial

this is why i want design custommaterial pattern inside of standard material because when we change standard material we just change .ts version 

and not change  shader version all material Library use own shader but custom material supposed to use base shader 

i have solution for fix that but i need change that in standard material else i most make fixed version of standard material for V3 and make custom material from this

so what is your recommend about that  ?

sol 1 :  append custom material shader parts to main shader Version?

sol 2 : make fixed version of standard material and inherited from them for make custom material [ in this case standard material changes not set by each  changes ]



Link to comment
Share on other sites

Hello my friend,

I cannot guarantee the standard material will remain unchanged from the point of view of the shader. It is a central piece of babylon.js and it is where most of the optimizations happen

Unfortunately I see no good solution from your point of view. I will try to keep it stable but there is no guarantee here.


You solution #1 is not applicable as I do not want to take a dependency on an extension

Link to comment
Share on other sites

thanks :D you always answer 

it is true but for keep update i need  make repository pattern ( without inherited ) so i make StandardMaterial2 (maybe different name ) -> copy with last version and make custom shader from this

so we update it after any 6 month i think this is good solution 


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.

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.


  • Recently Browsing   0 members

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