opacitynode: switch view to percent rather than as a normal number

This commit is contained in:
itsmattkc
2020-04-16 14:54:46 +10:00
parent b4795c0222
commit 8656b79319
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -6,5 +6,5 @@ uniform sampler2D tex_in;
uniform float opacity_in;
void main(void) {
gl_FragColor = texture2D(tex_in, ove_texcoord) * (opacity_in * 0.01);
gl_FragColor = texture2D(tex_in, ove_texcoord) * (opacity_in);
}
+3 -2
View File
@@ -21,8 +21,9 @@
<param id="opacity_in" type="float">
<name lang="en_US">Opacity</name>
<min>0</min>
<max>100</max>
<default>100</default>
<max>1</max>
<view>percent</view>
<default>1</default>
</param>
<!-- Qt Resource path to fragment shader -->