Semantics: Map noise*() to an operator for PureOperatorBuiltins mode.

Fixes issue #157.
This commit is contained in:
John Kessenich
2016-02-02 15:59:12 -07:00
parent 32cfd49b68
commit ba5685a332
5 changed files with 230 additions and 147 deletions

View File

@@ -139,6 +139,14 @@ void foo2()
bool b = any(lessThan(v4, attv4)); // tests aggregate arg to unary built-in
}
void noise()
{
float f1 = noise1(1.0);
vec2 f2 = noise2(vec2(1.0));
vec3 f3 = noise3(vec3(1.0));
vec4 f4 = noise4(vec4(1.0));
}
// version 130 features
uniform int c;