First of all, thanks a lot for the example! It's really helpful and exactly what I was looking for. I guess it takes some time to get used to the workflow.
OS and keyboard language are both German, that's probably why changing the culture info solves the problem. It's worth noting that I haven't ...
Search found 5 matches
- Fri May 12, 2017 2:01 pm
- Forum: Amplify Shader Editor
- Topic: if/if else/else clause in amplify shader editor
- Replies: 9
- Views: 21538
- Fri May 12, 2017 1:49 pm
- Forum: Amplify Shader Editor
- Topic: if/if else/else clause in amplify shader editor
- Replies: 9
- Views: 21538
Re: if/if else/else clause in amplify shader editor
Updated to the latest version from the website (only had the latest asset store version installed). The problem still exists, I'm using the 2017.1.0b1 with the updated C#/.NET version though. So that might be what's causing this.
- Fri May 12, 2017 10:10 am
- Forum: Amplify Shader Editor
- Topic: if/if else/else clause in amplify shader editor
- Replies: 9
- Views: 21538
Re: if/if else/else clause in amplify shader editor
Also, (probably a bug a I guess) putting a float value like 0,5 in a vector2 (and all other nodes like color and vector4) creates an error since it creates the code with 0,5 and not 0.5 so the constructor input is wrong.
http://i.imgur.com/PQR6SKq.png
http://i.imgur.com/q7Rd1pS.png
(I fixed ...
http://i.imgur.com/PQR6SKq.png
http://i.imgur.com/q7Rd1pS.png
(I fixed ...
- Thu May 11, 2017 10:32 pm
- Forum: Amplify Shader Editor
- Topic: if/if else/else clause in amplify shader editor
- Replies: 9
- Views: 21538
Re: if/if else/else clause in amplify shader editor
In my case I wanted to do something like in the given example code with using different values of the world position for an operation in each clause (at the end I want to get a world space texture). I tried to use two compare statements, but if the first value is true, there is no way to "avoid ...
- Thu May 11, 2017 9:36 pm
- Forum: Amplify Shader Editor
- Topic: if/if else/else clause in amplify shader editor
- Replies: 9
- Views: 21538
if/if else/else clause in amplify shader editor
Hey!
How would I realize an if, if else, else clause in Amplify Shader Editor? A simple if clause is easily doable with a..well 'if' node, but I'm not sure how I'd do the if/else if.
For example something like:
if(test > 0.5)
{
//something
}
else if(test < 0.1)
{
//something else
}
else ...
How would I realize an if, if else, else clause in Amplify Shader Editor? A simple if clause is easily doable with a..well 'if' node, but I'm not sure how I'd do the if/else if.
For example something like:
if(test > 0.5)
{
//something
}
else if(test < 0.1)
{
//something else
}
else ...