Skip to content

Commit

Permalink
[geom filter] Improve default script
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Nov 15, 2024
1 parent d9c5c62 commit 48a44f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/plugins/score-plugin-gfx/Gfx/GeometryFilter/Process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,16 @@ static const auto defaultGeometryFilter = QStringLiteral(R"_(/*{
{
"NAME": "intensity",
"TYPE": "float",
"DEFAULT": 1.
"DEFAULT": 1.,
"MIN": 0.,
"MAX": 1.,
}
]
}*/
void process_vertex(inout vec3 position, inout vec3 normal, inout vec2 uv, inout vec3 tangent, inout vec4 color)
{
position.xyz *= this_filter.intensity + 10. * sin(gl_VertexIndex);
position.xyz += this_filter.intensity + 10. * sin(TIME * 0.001 * gl_VertexIndex);
}
)_");
Process::ScriptChangeResult Model::setScript(const QString& f)
Expand Down

0 comments on commit 48a44f3

Please sign in to comment.