ChrisOS Research ProjectOperating systems · language systems · graphics · machine emulation
DOCUMENTATION ARCHIVEMAIN BRANCH
ChrisOS/Source reference: kernel/gfx/shader/glsl/light.vert

Source reference: kernel/gfx/shader/glsl/light.vert

Deterministic source record. The complete textual file is reproduced below; this page does not replace architectural interpretation in the authored chapters.

File identity

Field Value
Path kernel/gfx/shader/glsl/light.vert
Lines 15
Bytes 323
SHA-256 3c5e37556abe4ef8c13923c0d8a898e350f678bd1d6efc8444eed1a614c1111b
ChrisOS revision da3df29cb397932c43d32373871fb9380e688ade

Detected syntactic dependencies

Line Include
— No preprocessor include detected.

Detected symbols

Line Symbol
9 main

Complete source

The following block is the complete textual file at the recorded revision. No lines are elided, abbreviated or paraphrased.

#version 330
layout(location = 0) in vec3 position;
layout(location = 1) in vec3 normal;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
out vec3 vN;
out vec3 vP;
void main() {
    vec4 world = model * vec4(position, 1.0);
    vP = world.xyz;
    vN = normal;
    gl_Position = projection * view * world;
}

Role of this record

The atlas guarantees file-by-file traceability. Responsibility, invariants, ownership, concurrency, security, performance and subsystem interactions belong in authored chapters and must cite this file when applicable.

Document record ID: source-3c5e37556abe4ef8 Reviewed source: da3df29cb397 Class: generated-source-reference