-
-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathTexturedCubeUniforms.h
More file actions
32 lines (25 loc) · 865 Bytes
/
TexturedCubeUniforms.h
File metadata and controls
32 lines (25 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/******************************************************************************
Copyright 2021 Evgeny Gorodetskiy
Licensed under the Apache License, Version 2.0
*******************************************************************************
FILE: MethaneKit/Apps/Tutorials/03-TexturedCube/Shaders/TexturedCubeUniforms.h
Shader uniform structures shared between HLSL and C++ code via HLSL++
******************************************************************************/
#ifndef TEXTURED_CUBE_UNIFORMS_H
#define TEXTURED_CUBE_UNIFORMS_H
struct Constants
{
float4 light_color;
float light_power;
float light_ambient_factor;
float light_specular_factor;
float _padding;
};
struct Uniforms
{
float3 eye_position;
float3 light_position;
float4x4 mvp_matrix;
float4x4 model_matrix;
};
#endif // TEXTURED_CUBE_UNIFORMS_H