Added xyla shader
This commit is contained in:
@@ -41,15 +41,6 @@
|
||||
"max": 3.0,
|
||||
"step": 0.01
|
||||
},
|
||||
{
|
||||
"id": "pixelFilter",
|
||||
"label": "Pixel Filter",
|
||||
"type": "float",
|
||||
"default": 745.0,
|
||||
"min": 120.0,
|
||||
"max": 1600.0,
|
||||
"step": 1.0
|
||||
},
|
||||
{
|
||||
"id": "contrast",
|
||||
"label": "Contrast",
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
float4 balatroSwirl(float2 screenSize, float2 screenCoords, float time)
|
||||
{
|
||||
const float pi = 3.14159265359;
|
||||
float safePixelFilter = max(pixelFilter, 1.0);
|
||||
float safeScreenLength = max(length(screenSize), 1.0);
|
||||
float pixelSize = safeScreenLength / safePixelFilter;
|
||||
float2 uv = (floor(screenCoords * (1.0 / pixelSize)) * pixelSize - 0.5 * screenSize) / safeScreenLength - offset;
|
||||
float2 uv = (screenCoords - 0.5 * screenSize) / safeScreenLength - offset;
|
||||
float uvLength = length(uv);
|
||||
|
||||
float speed = spinRotation * spinEase * 0.2;
|
||||
|
||||
Reference in New Issue
Block a user