Debian Codegraph @

src/scene/glsl/generated-pascal/lighting_model_phong_structures.glsl.inc

raw
1 { -*- buffer-read-only: t -*- }
2 { DON'T EDIT -- this file was automatically generated from "source/lighting_model_phong/structures.glsl" }
3 '/*' + LineEnding +
4 ' Copyright 2020-2020 Michalis Kamburelis.' + LineEnding +
5 '' + LineEnding +
6 ' This file is part of "Castle Game Engine".' + LineEnding +
7 '' + LineEnding +
8 ' "Castle Game Engine" is free software; see the file COPYING.txt,' + LineEnding +
9 ' included in this distribution, for details about the copyright.' + LineEnding +
10 '' + LineEnding +
11 ' "Castle Game Engine" is distributed in the hope that it will be useful,' + LineEnding +
12 ' but WITHOUT ANY WARRANTY; without even the implied warranty of' + LineEnding +
13 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.' + LineEnding +
14 '' + LineEnding +
15 ' ----------------------------------------------------------------------------' + LineEnding +
16 '' + LineEnding +
17 ' Structures for Phong lighting model.' + LineEnding +
18 ' They are included in a special way, to make GLSL code compile both with and without' + LineEnding +
19 ' "separate compilation units".' + LineEnding +
20 '*/' + LineEnding +
21 '' + LineEnding +
22 'struct MaterialInfo' + LineEnding +
23 '{' + LineEnding +
24 ' /* Calculated color from' + LineEnding +
25 ' Material.diffuseColor/transparency (or ColorRGBA node) * diffuse texture.' + LineEnding +
26 ' Contains complete "diffuse/transparency" information that is independent of light source.' + LineEnding +
27 ' In case of Gouraud shading it is not multiplied by the diffuse texture' + LineEnding +
28 ' (because it cannot be, as we''re on vertex shader). */' + LineEnding +
29 ' vec4 diffuse_alpha;' + LineEnding +
30 '' + LineEnding +
31 ' vec3 ambient;' + LineEnding +
32 ' vec3 specular;' + LineEnding +
33 ' float shininess;' + LineEnding +
34 '};' + LineEnding +
35 ''