Skip to content

Commit c40bca0

Browse files
committed
ShaderGraph : Added main light color node
1 parent df7a13f commit c40bca0

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package hrt.shgraph.nodes;
2+
3+
using hxsl.Ast;
4+
5+
@name("MainLightColor")
6+
@description("Get the main light color")
7+
@group("Property")
8+
class MainLightColor extends ShaderNodeHxsl {
9+
10+
static var SRC = {
11+
@sgoutput var output : Vec3;
12+
13+
@global var mainLightColor : Vec3;
14+
@global var mainLightPower : Float;
15+
16+
function fragment() {
17+
output = mainLightColor * mainLightPower;
18+
}
19+
};
20+
}

0 commit comments

Comments
 (0)