This commit is contained in:
2025-04-29 13:39:02 -05:00
commit 9cbb583982
2257 changed files with 77258 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
{
"name" : "Foliage Sway",
"description" : "Sways the object in each corner of the image.",
"group" : "geometry",
//"preview" : "preview/project.json",
"passes" :
[
{
"material" : "materials/effects/foliagesway.json"
}
],
"dependencies" :
[
"materials/effects/foliagesway.json",
"shaders/effects/foliagesway.frag",
"shaders/effects/foliagesway.vert"
]
}

View File

@@ -0,0 +1,9 @@
{
"passes": [{
"shader": "effects/foliagesway",
"blending": "normal",
"depthtest": "disabled",
"depthwrite": "disabled",
"cullmode": "nocull"
}]
}

View File

@@ -0,0 +1,13 @@
{
"passes" :
[
{
"blending" : "translucent",
"cullmode" : "nocull",
"depthtest" : "disabled",
"depthwrite" : "disabled",
"shader" : "genericimage2",
"textures" : [ "plant1" ]
}
]
}

View File

@@ -0,0 +1,5 @@
{
"clampuvs" : true,
"format" : "rgba8888",
"nonpoweroftwo" : true
}

View File

@@ -0,0 +1,13 @@
{
"passes" :
[
{
"blending" : "translucent",
"cullmode" : "nocull",
"depthtest" : "disabled",
"depthwrite" : "disabled",
"shader" : "genericimage2",
"textures" : [ "vegetation_grass_card_03" ]
}
]
}

View File

@@ -0,0 +1,5 @@
{
"clampuvs" : true,
"format" : "rgba8888",
"nonpoweroftwo" : true
}

View File

@@ -0,0 +1,4 @@
{
"autosize" : true,
"material" : "materials/effectpreview.json"
}

View File

@@ -0,0 +1,4 @@
{
"autosize" : true,
"material" : "materials/plant1.json"
}

View File

@@ -0,0 +1,4 @@
{
"autosize" : true,
"material" : "materials/vegetation_grass_card_03.json"
}

View File

@@ -0,0 +1,18 @@
{
"file" : "scene.json",
"general" :
{
"properties" :
{
"schemecolor" :
{
"order" : 0,
"text" : "ui_browse_properties_scheme_color",
"type" : "color",
"value" : "0 0 0"
}
}
},
"title" : "preview",
"type" : "scene"
}

View File

@@ -0,0 +1,114 @@
{
"camera" :
{
"center" : "0.000 0.000 -1.000",
"eye" : "0.000 0.000 0.000",
"up" : "0.000 1.000 0.000"
},
"general" :
{
"ambientcolor" : "0.3 0.3 0.3",
"bloom" : false,
"bloomstrength" : 2,
"bloomthreshold" : 0.64999997615814209,
"cameraparallax" : false,
"cameraparallaxamount" : 0.5,
"cameraparallaxdelay" : 0.10000000149011612,
"cameraparallaxmouseinfluence" : 0,
"camerapreview" : true,
"camerashake" : false,
"camerashakeamplitude" : 0.5,
"camerashakeroughness" : 1,
"camerashakespeed" : 3,
"clearcolor" : "0.7 0.7 0.7",
"orthogonalprojection" :
{
"height" : 256,
"width" : 256
},
"skylightcolor" : "0.3 0.3 0.3"
},
"objects" :
[
{
"angles" : "0.000 0.000 0.158",
"depth" : 1,
"effects" :
[
{
"file" : "effects/foliagesway/effect.json",
"passes" :
[
{
"constantshadervalues" :
{
"Power" : 0.75,
"Speed" : 3.2100000381469727,
"Strength" : 93.339996337890625
}
}
]
}
],
"id" : 35,
"image" : "models/plant1.json",
"name" : "",
"origin" : "90.869 109.808 0.000",
"scale" : "0.311 0.311 1.000"
},
{
"angles" : "0.000 0.000 -0.112",
"depth" : -1.8400000333786011,
"effects" :
[
{
"file" : "effects/foliagesway/effect.json",
"passes" :
[
{
"constantshadervalues" :
{
"Phase" : 3.0999999046325684,
"Power" : 0.82999998331069946,
"Speed" : 3.869999885559082,
"Strength" : 66.680000305175781
}
}
]
}
],
"id" : 43,
"image" : "models/plant1.json",
"name" : "",
"origin" : "187.171 96.043 0.000",
"scale" : "-0.187 0.272 1.000"
},
{
"angles" : "0.000 0.000 0.000",
"depth" : 1,
"effects" :
[
{
"file" : "effects/foliagesway/effect.json",
"passes" :
[
{
"constantshadervalues" :
{
"Phase" : 3.5199999809265137,
"Power" : 0.82999998331069946,
"Speed" : 2.809999942779541,
"Strength" : 33.340000152587891
}
}
]
}
],
"id" : 56,
"image" : "models/vegetation_grass_card_03.json",
"name" : "",
"origin" : "112.015 17.422 0.000",
"scale" : "1.000 1.000 1.000"
}
]
}

View File

@@ -0,0 +1,8 @@
varying vec2 v_TexCoord;
uniform sampler2D g_Texture0; // {"material":"Framebuffer","hidden":true}
void main() {
gl_FragColor = texSample2D(g_Texture0, v_TexCoord);
}

View File

@@ -0,0 +1,39 @@
uniform mat4 g_ModelViewProjectionMatrix;
uniform float g_Time;
uniform float g_Speed; // {"material":"Speed","default":1,"range":[0.01, 10]}
uniform float g_Strength; // {"material":"Strength","default":100,"range":[0.01, 500]}
uniform float g_Phase; // {"material":"Phase","default":0,"range":[0, 6.28]}
uniform float g_Power; // {"material":"Power","default":1,"range":[0.01, 2]}
uniform vec2 g_DirectionWeights; // {"material":"Direction weights","default":"1 0.2"}
uniform vec4 g_CornerWeights; // {"material":"Corner weights","default":"1 1 0 0"}
attribute vec3 a_Position;
attribute vec2 a_TexCoord;
varying vec2 v_TexCoord;
void main() {
vec3 position = a_Position;
vec4 sines = g_Phase + g_Speed * g_Time * vec4(1, -0.16161616, 0.0083333, -0.00019841);
sines = sin(sines);
vec4 csines = 0.4 + g_Phase + g_Speed * g_Time * vec4(-0.5, 0.041666666, -0.0013888889, 0.000024801587);
csines = sin(csines);
sines = pow(abs(sines), g_Power) * sign(sines);
csines = pow(abs(csines), g_Power) * sign(csines);
float weight = saturate(g_CornerWeights.x * (1.0 - a_TexCoord.x) * (1.0 - a_TexCoord.y) +
g_CornerWeights.y * (a_TexCoord.x) * (1.0 - a_TexCoord.y) +
g_CornerWeights.z * (a_TexCoord.x) * (a_TexCoord.y) +
g_CornerWeights.w * (1.0 - a_TexCoord.x) * (a_TexCoord.y));
position.x += dot(sines, CAST4(1.0)) * g_Strength * weight * g_DirectionWeights.x;
position.y += dot(csines, CAST4(1.0)) * g_Strength * weight * g_DirectionWeights.y;
gl_Position = mul(vec4(position, 1.0), g_ModelViewProjectionMatrix);
v_TexCoord = a_TexCoord;
}

View File

@@ -0,0 +1,4 @@
{
"name": "FX Preview",
"type": "scene2d"
}