Skip to content

Commit

Permalink
replace varying with in and out
Browse files Browse the repository at this point in the history
  • Loading branch information
Bauumm committed Oct 24, 2024
1 parent 39c096e commit 46753f4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions compat/game192/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if not args.headless then
[[
layout(location = 3) in vec2 instance_offset;
layout(location = 4) in vec4 instance_color;
varying vec4 instance_color_out;
out vec4 instance_color_out;
vec4 position(mat4 transform_projection, vec4 vertex_position)
{
Expand All @@ -54,7 +54,7 @@ if not args.headless then
}
]],
[[
varying vec4 instance_color_out;
in vec4 instance_color_out;
vec4 effect(vec4 color, Image tex, vec2 texture_coords, vec2 screen_coords)
{
Expand Down
4 changes: 2 additions & 2 deletions compat/game20/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ public.init = async(function(conf, audio)
[[
layout(location = 3) in vec2 instance_offset;
layout(location = 4) in vec4 instance_color;
varying vec4 instance_color_out;
out vec4 instance_color_out;
vec4 position(mat4 transform_projection, vec4 vertex_position)
{
Expand All @@ -475,7 +475,7 @@ public.init = async(function(conf, audio)
}
]],
[[
varying vec4 instance_color_out;
in vec4 instance_color_out;
vec4 effect(vec4 color, Image tex, vec2 texture_coords, vec2 screen_coords)
{
Expand Down
4 changes: 2 additions & 2 deletions compat/game21/pseudo3d.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function pseudo3d.init(pass_game)
[[
layout(location = 3) in vec2 instance_position;
layout(location = 4) in vec4 instance_color;
varying vec4 instance_color_out;
out vec4 instance_color_out;
vec4 position(mat4 transform_projection, vec4 vertex_position)
{
Expand All @@ -26,7 +26,7 @@ function pseudo3d.init(pass_game)
}
]],
[[
varying vec4 instance_color_out;
in vec4 instance_color_out;
vec4 effect(vec4 color, Image tex, vec2 texture_coords, vec2 screen_coords)
{
Expand Down
4 changes: 2 additions & 2 deletions compat/game21/shader_compat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function shader_compat.compile(new_code, code, filename)
[[
attribute vec2 instance_position;
attribute vec4 instance_color;
varying vec4 instance_color_out;
out vec4 instance_color_out;
vec4 position(mat4 transform_projection, vec4 vertex_position)
{
Expand All @@ -175,7 +175,7 @@ function shader_compat.compile(new_code, code, filename)
}
]],
[[
varying vec4 instance_color_out;
in vec4 instance_color_out;
]]
.. new_code:gsub(
"_new_wrap_original_pixel_color = color;",
Expand Down

0 comments on commit 46753f4

Please sign in to comment.