This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #version 330 core | |
| out vec4 FragColor; | |
| in vec2 TexCoords; | |
| in vec3 WorldPos; | |
| in vec3 Normal; | |
| // material parameters | |
| uniform vec3 albedo; | |
| uniform float metallic; | |
| uniform float roughness; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Here are the steps for building OSG in the OpenGL CORE Profile | |
| once you have configured CMake as usual. | |
| 1. Download the GL CORE include folder from Khronos: | |
| https://www.khronos.org/registry/OpenGL/api/GL/ | |
| 2. Put it in a folder somewhere. You can put it in a folder called glcore, or | |
| you can make a "GL" folder in the include folder of the OSG repository and | |
| put it there. | |