Thu, 04/16/2020 - 17:20
Forums:
Hello everyone, I don't know how to set the value for sampler2d in the fragment shader of shaderprogram of occt7.4.0?
gooch.fs
precision highp float;
varying vec2 TexCoords;
varying vec3 WorldPos;
varying vec3 Normal;
// material parameters
uniform sampler2D albedoMap;
uniform sampler2D normalMap;
uniform sampler2D metallicMap;
uniform sampler2D roughnessMap;
uniform sampler2D aoMap;
const float PI = 3.14159265359;
Thu, 04/16/2020 - 22:50
You may find useful the following multi-texture (with arbitrary textures) GLSL program test script:
tests/v3d/glsl/texture_multi1
Concerning usage of standard PBR metal-roughness texture maps, they are implemented within current OCCT development branch and declared with other names - see Declarations.glsl: