Last change
on this file since 12397 was
12115,
checked in by wiesep, 6 years ago
|
Changed folder structure, deletet some unused files and cleaned up code
|
File size:
443 bytes
|
Line | |
---|
1 | // Geometry pass-through program for colored triangles |
---|
2 | TRIANGLE void gs_swizzle(AttribArray<float4> position : POSITION) |
---|
3 | { |
---|
4 | for (int i=0; i<position.length; i++) { |
---|
5 | emitVertex(position[i], float4(1,0.9,0.8,0.7):COLOR0); |
---|
6 | } |
---|
7 | restartStrip(); |
---|
8 | for (int i=0; i<position.length; i++) { |
---|
9 | float4 newPosition = position[i].yxzw; |
---|
10 | newPosition.z += 20; |
---|
11 | emitVertex(newPosition:POSITION, float4(0.3,0.4,0.5,0.6):COLOR0); |
---|
12 | } |
---|
13 | restartStrip(); |
---|
14 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.