Rework API graphique Vulkan - EnTT pour ECS + Chargement modèle 3D assimp + SDL3 pour events input et fenetre + mesh texture camera transform ok + attention tous les assets nouveaus ne sont pas commités et il y a du code test en dur dans scene addentity + restructuration globale
This commit is contained in:
20
lib/All/SPIRV-Reflect/tests/glsl/frag_barycentric.glsl
Normal file
20
lib/All/SPIRV-Reflect/tests/glsl/frag_barycentric.glsl
Normal file
@@ -0,0 +1,20 @@
|
||||
#version 320 es
|
||||
#extension GL_EXT_fragment_shader_barycentric : require
|
||||
|
||||
precision highp float;
|
||||
|
||||
layout(location = 0) pervertexEXT in float vertexIDs[3];
|
||||
layout(location = 1) pervertexEXT in float vertexIDs2[3];
|
||||
|
||||
layout(location = 1) out float value;
|
||||
|
||||
void main () {
|
||||
value = (gl_BaryCoordNoPerspEXT.x * vertexIDs[0] +
|
||||
gl_BaryCoordNoPerspEXT.y * vertexIDs[1] +
|
||||
gl_BaryCoordNoPerspEXT.z * vertexIDs[2]);
|
||||
|
||||
value += (gl_BaryCoordNoPerspEXT.x * vertexIDs2[0] +
|
||||
gl_BaryCoordNoPerspEXT.y * vertexIDs2[1] +
|
||||
gl_BaryCoordNoPerspEXT.z * vertexIDs2[2]);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user