opacitynode: switch view to percent rather than as a normal number
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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 -->
|
||||
|
||||
Reference in New Issue
Block a user