Skip to content

Commit b6d2448

Browse files
committed
Updated shaders to work with instanced scale and rotation.
1 parent 8f5dee2 commit b6d2448

4 files changed

Lines changed: 47373 additions & 47292 deletions

File tree

src/vsg/utils/Builder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ ref_ptr<StateGroup> Builder::createStateGroup(const StateInfo& stateInfo)
115115

116116
if (stateInfo.billboard)
117117
{
118-
graphicsPipelineConfig->enableArray("vsg_position_scaleDistance", VK_VERTEX_INPUT_RATE_INSTANCE, 16);
118+
graphicsPipelineConfig->enableArray("vsg_Position_scaleDistance", VK_VERTEX_INPUT_RATE_INSTANCE, 16);
119119
}
120120
else if (stateInfo.instance_positions_vec3)
121121
{
122-
graphicsPipelineConfig->enableArray("vsg_position", VK_VERTEX_INPUT_RATE_INSTANCE, 12);
122+
graphicsPipelineConfig->enableArray("vsg_Position", VK_VERTEX_INPUT_RATE_INSTANCE, 12);
123123
}
124124

125125
struct SetPipelineStates : public Visitor

0 commit comments

Comments
 (0)