[Source] Material proxies for matrix data type?(i.e. target R in RGB of $color)
1 replies, posted
https://files.facepunch.com/forum/upload/319505/72878b97-283c-4eef-986b-8c3aeb8882ae/chrome_2018-09-09_00-29-15.png
This is the only info online I could find but no success in testing it out, it feels like material variables can only be scalar. Was hoping someone knew more about the highlighted part of the screencap.
If I wanted to dynamically change the R value in $color's [RGB] data, how would I target that?
Damn, i forgot how to do that. Had to crawl thru my comments on steam and the server being slow. Just quotes around the vector var.
$color "[0 0 0]"
proxies
{
sine
{
sineperiod 1.0
sinemin 0
sinemax 1
timeoffset 0
resultvar "$color[0]"
}
sine
{
sineperiod 1.6
sinemin 0
sinemax 1
timeoffset 0
resultvar "$color[1]"
}
sine
{
sineperiod 2.7
sinemin 0
sinemax 1
timeoffset 0
resultvar "$color[2]"
}
}
Sorry, you need to Log In to post a reply to this thread.