mirror of
https://github.com/redstrate/Novus.git
synced 2025-05-14 12:37:46 +00:00
This will be used in the map editor to draw where objects are. It doesn't draw anything yet, and can't until we get LGB support in libphysis.
16 lines
326 B
GLSL
16 lines
326 B
GLSL
// SPDX-FileCopyrightText: 2025 Joshua Goins <josh@redstrate.com>
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
#version 450
|
|
|
|
layout(location = 0) in vec3 inPosition;
|
|
|
|
layout(std430, push_constant) uniform PushConstant {
|
|
mat4 vp, model;
|
|
};
|
|
|
|
void main() {
|
|
vec4 bPos = model * vec4(inPosition, 1.0);
|
|
|
|
gl_Position = vp * bPos;
|
|
}
|