1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
iko 67312b7991 0030700: Visualization, TKOpenGl - support PBR Metallic-Roughness shading model
Metallic-Roughness shading model Graphic3d_TOSM_PBR has been implemented.
New materials descriptors Graphic3d_PBRMaterial have been added to Graphic3d_MaterialAspect.
PBR shading model requires OpenGL 3.0+ or OpenGL ES 3.0+ hardware.
Environment cubemap is expected to be provided for realistic look of metallic materials.

occLight_IsHeadlight() now returns bool instead of int.
Avoid using lowp for enumerations to workaround occLight_IsHeadlight()
ignorance on Adreno 308 caused by some GLSL optimizator bugs.

OpenGl_Texture::EstimatedDataSize() - fixed estimation for Cubemap textures.
OpenGl_Sampler::applySamplerParams() - fixed uninitialized GL_TEXTURE_WRAP_R in case of GL_TEXTURE_CUBE_MAP target.
2019-11-01 18:25:28 +03:00

21 lines
472 B
Plaintext

vclear
vinit View1
XDisplay -dispMode 1 D
vaxo
vfit
vrenderparams -shadingModel PHONG
vlight -change 0 -intensity 2.5
vlight -change 1 -intensity 0.3
vcamera -orthographic
vdump ${imagedir}/${casename}.png
vdump ${imagedir}/${casename}_ortho_phong.png
vcamera -persp
vdump ${imagedir}/${casename}_persp_phong.png
vrenderparams -shadingModel PBR
vcamera -orthographic
vdump ${imagedir}/${casename}_ortho_pbr.png
vcamera -persp
vdump ${imagedir}/${casename}_persp_pbr.png