WebGL friendly shader
This commit is contained in:
parent
546d83bf1d
commit
d021b3ab3b
3 changed files with 37 additions and 24 deletions
|
@ -5,19 +5,20 @@ shader_type canvas_item;
|
||||||
|
|
||||||
render_mode unshaded;
|
render_mode unshaded;
|
||||||
|
|
||||||
uniform int iterations = 17;
|
const int volsteps = 20;
|
||||||
uniform float formuparam = 0.53;
|
const int iterations = 17;
|
||||||
uniform int volsteps = 20;
|
const float formuparam = 0.53;
|
||||||
uniform float stepsize = 0.1;
|
const float stepsize = 0.1;
|
||||||
uniform float zoom = 0.80;
|
const float brightness = 0.0015;
|
||||||
uniform float tile = 0.85;
|
const float darkmatter = 0.300;
|
||||||
|
const float distfading = 0.730;
|
||||||
|
const float saturation = 0.850;
|
||||||
|
const float rotx = 0.;
|
||||||
|
const float roty = 0.001;
|
||||||
|
const float tile = 0.85;
|
||||||
|
|
||||||
uniform float speed = 0.001;
|
uniform float speed = 0.001;
|
||||||
uniform float brightness = 0.0015;
|
uniform float zoom = 0.80;
|
||||||
uniform float darkmatter = 0.300;
|
|
||||||
uniform float distfading = 0.730;
|
|
||||||
uniform float saturation = 0.850;
|
|
||||||
uniform float rotx = 0;
|
|
||||||
uniform float roty = 0.001;
|
|
||||||
|
|
||||||
void fragment() {
|
void fragment() {
|
||||||
vec2 uv = FRAGCOORD.xy * SCREEN_PIXEL_SIZE - 0.5;
|
vec2 uv = FRAGCOORD.xy * SCREEN_PIXEL_SIZE - 0.5;
|
||||||
|
|
|
@ -22,19 +22,8 @@ shader = SubResource( 2 )
|
||||||
|
|
||||||
[sub_resource type="ShaderMaterial" id=4]
|
[sub_resource type="ShaderMaterial" id=4]
|
||||||
shader = ExtResource( 2 )
|
shader = ExtResource( 2 )
|
||||||
shader_param/iterations = 17
|
|
||||||
shader_param/formuparam = 0.53
|
|
||||||
shader_param/volsteps = 20
|
|
||||||
shader_param/stepsize = 0.1
|
|
||||||
shader_param/zoom = 0.8
|
|
||||||
shader_param/tile = 0.85
|
|
||||||
shader_param/speed = 0.001
|
shader_param/speed = 0.001
|
||||||
shader_param/brightness = 0.0015
|
shader_param/zoom = 0.8
|
||||||
shader_param/darkmatter = 0.3
|
|
||||||
shader_param/distfading = 0.73
|
|
||||||
shader_param/saturation = 0.85
|
|
||||||
shader_param/rotx = 0.0
|
|
||||||
shader_param/roty = 0.001
|
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id=5]
|
[sub_resource type="StyleBoxFlat" id=5]
|
||||||
content_margin_left = 16.0
|
content_margin_left = 16.0
|
||||||
|
|
|
@ -40,3 +40,26 @@ application/product_name="NSS Odyssey"
|
||||||
application/file_description=""
|
application/file_description=""
|
||||||
application/copyright=""
|
application/copyright=""
|
||||||
application/trademarks=""
|
application/trademarks=""
|
||||||
|
|
||||||
|
[preset.1]
|
||||||
|
|
||||||
|
name="HTML5"
|
||||||
|
platform="HTML5"
|
||||||
|
runnable=true
|
||||||
|
custom_features=""
|
||||||
|
export_filter="all_resources"
|
||||||
|
include_filter=""
|
||||||
|
exclude_filter=""
|
||||||
|
export_path="export/html/odyssey.html"
|
||||||
|
patch_list=PoolStringArray( )
|
||||||
|
script_export_mode=1
|
||||||
|
script_encryption_key=""
|
||||||
|
|
||||||
|
[preset.1.options]
|
||||||
|
|
||||||
|
vram_texture_compression/for_desktop=true
|
||||||
|
vram_texture_compression/for_mobile=false
|
||||||
|
html/custom_html_shell=""
|
||||||
|
html/head_include=""
|
||||||
|
custom_template/release=""
|
||||||
|
custom_template/debug=""
|
||||||
|
|
Reference in a new issue