+8
На рассмотрении

4.3 Shader Keywords support

Andrei Nadin 11 лет назад обновлен Freya Holmér (Developer) 11 лет назад 2

This is a bigger thing I know but perhaps start with the Blending block?


Simple example is a shader that has the RGB in the Diffuse and A into Alpha,  


With a drop down we could change the blend mode and disable the A link?

Ответ

Ответ
На рассмотрении

Possibly, it's quite a massive thing to implement, as I would have to restructure almost everything in order to get it to work properly. If lots of people vote this up I'll consider implementing it :)

Ответ
На рассмотрении

Possibly, it's quite a massive thing to implement, as I would have to restructure almost everything in order to get it to work properly. If lots of people vote this up I'll consider implementing it :)

Yup I can imagine.. I was actually thinking that in the nodes this might be easier, at least conceptually.. A Keyword Node. be able to insert it at the end of a block of nodes for example..


Texture2D (SpecMap)

Color (SpecColor)


Multiply Tex2D with Color


KeywordNode (Specular On/Off)

Its a bit like a IF node, if the keyword is on - use the previous nodes, if the keyword is odd, break the connection.


I can imagine it is a LOT of work for the shader itself but then you would have an awesome ubershader :)

Vote for keywords !! ra ra ra ;)

Сервис поддержки клиентов работает на платформе UserEcho