system
1
|
|
|
|
Attention |
Topic was automatically imported from the old Question2Answer platform. |
|
Asked By |
MikeMikeMike |
Hi…,
how to set from ShaderMaterial the pass ShaderMaterial parameter?
Thanks
Mike
This question is impossible to understand. Rephrase it.
system
3
|
|
|
|
Reply From: |
MikeMikeMike |
hi @rossunger,
in the particles-code I set my CUSTOM.x parameter:
shader_type particles;
void vertex() {
if (RESTART) {
CUSTOM.x = ...
} else {
}
}
How to pass this to the pass MaterialShader code:
shader_type spatial;
void vertex(){
float c = CUSTOM.x; // this doesn't work
}
Any ideas?
Thanks
Mike
P.S.: I think COLOR is passed from the particles code to pass MaterialShader code, but COLOR gives me only 4 floats, perhaps I need more.