Added Ink and ncore to modules
This commit is contained in:
17
test/ifdefs.ink
Normal file
17
test/ifdefs.ink
Normal file
@@ -0,0 +1,17 @@
|
||||
#add_define Skinning
|
||||
#add_define UV
|
||||
|
||||
|
||||
#if Env.Skinning {
|
||||
vertex skinning_main :: () {
|
||||
x : float = 5.0;
|
||||
}
|
||||
} else #if Env.UV {
|
||||
vertex texture_mapping_main :: () {
|
||||
x : float2 = float2(2.0, 2.0);
|
||||
}
|
||||
}
|
||||
|
||||
pixel main :: () {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user