forked from Dynamitos/Seele
its running i think
This commit is contained in:
1 parent
19c3e559b1
commit
effb0c6214
34 files changed
+299
-249
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import VertexData;
|
||||
import MaterialParameter;
|
||||
|
||||
struct InstanceData
|
||||
{
|
||||
@@ -13,11 +14,11 @@ struct Scene
|
||||
ParameterBlock<Scene> pScene;
|
||||
|
||||
[shader("vertex")]
|
||||
IVertexAttributes vertexMain(
|
||||
VertexAttributes vertexMain(
|
||||
uint vertexId: SV_VertexID,
|
||||
uint instanceId: SV_InstanceID,
|
||||
){
|
||||
InstanceData inst = pScene.instances[instanceId];
|
||||
IVertexAttributes attr = pVertexData.getAttributes(vertexId, inst.transformMatrix);
|
||||
VertexAttributes attr = pVertexData.getAttributes(vertexId, inst.transformMatrix);
|
||||
return attr;
|
||||
}
|
||||
Reference in new issue
Block a user