Sha256: 9c50e667c678b8b7babc02989f0dd00c56a630fd4c9195d9f0e9206b8ca002b1
Contents?: true
Size: 703 Bytes
Versions: 3
Compression:
Stored size: 703 Bytes
Contents
#version 330 core // <vec2 position, vec2 texCoords, vec3 normal, vec3 tangent> layout (location = 0) in vec3 vertex; layout (location = 2) in vec3 normal; layout (location = 4) in vec3 diffuse; layout (location = 5) in vec3 specular; layout (location = 6) in vec3 albedo; layout (location = 7) in mat4 model; out vec3 Normal; out vec3 FragPos; out vec3 Diffuse; out vec3 Specular; out vec3 Albedo; uniform mat4 camera; void main() { mat3 normalMatrix = mat3(transpose(inverse(model))); Normal = normalMatrix * normal; FragPos = vec3(model * vec4(vertex, 1.0)); gl_Position = camera * model * vec4(vertex, 1.0); Diffuse = diffuse; Specular = specular; Albedo = albedo; }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby_rpg-0.0.4 | lib/engine/shaders/vertex_lit_vertex.glsl |
ruby_rpg-0.0.3 | lib/engine/shaders/vertex_lit_vertex.glsl |
ruby_rpg-0.0.2 | lib/engine/shaders/vertex_lit_vertex.glsl |