Skip to content

Instantly share code, notes, and snippets.

@FrankRicharrd
FrankRicharrd / pbr.frag
Last active November 23, 2023 02:59
Physically based rendering using openscenegraph
#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;
@gwaldron
gwaldron / gist:a56b0e77e7fa8587b698717d21f9366d
Last active February 15, 2020 13:45
Building OSG and osgEarth in GL CORE profile
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.