mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 09:12:46 +01:00
Shader Debugger: Allow editing of input vertex data
This commit is contained in:
parent
2bdf9ede91
commit
2011f9a042
1 changed files with 2 additions and 0 deletions
|
@ -518,6 +518,8 @@ void GraphicsVertexShaderWidget::OnResumed() {
|
|||
|
||||
void GraphicsVertexShaderWidget::OnInputAttributeChanged(int index) {
|
||||
float value = input_data[index]->text().toFloat();
|
||||
input_vertex.attr[index / 4][index % 4] = Pica::float24::FromFloat32(value);
|
||||
// Re-execute shader with updated value
|
||||
Reload();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue