mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
OpenGl_ShaderManager - metallic-roughness, emissive, occlusion and normal texture maps are now supported by PBR. Emissive, occlusion and normal texture maps are now supported by Phong shading model. Path-Tracing now handles metallic-roughness and emissive texture maps. Graphic3d_TextureUnit enumeration has been extended by new values corresponding to supported texture maps. OpenGl_TextureSet and OpenGl_ShaderProgram have been extended with bitmask Graphic3d_TextureSetBits identifying texture slots read from GLSL Program and slots defined within Texture Set to avoid undefined behavior by binding mock textures. OpenGl_TextureSet now duplicates texture unit information to handle textures shared across multiple slots (like Occlusion [R] + Metallic-Roughness [GB]). OpenGl_Context::BindTextures() has been extended with active GLSL program paramter to set mock textures to texture units used by program but undefined by texture set. OpenGl_Workspace::ApplyAspects() has been extended with parameter to avoid bining texture set.
26 lines
654 B
Plaintext
26 lines
654 B
Plaintext
puts "========"
|
|
puts "0031096: Visualization, TKOpenGl - support metallic-roughness texture mapping"
|
|
puts "========"
|
|
|
|
pload XDE OCAF MODELING VISUALIZATION
|
|
catch { Close D }
|
|
ReadGltf D [locate_data_file bug30691_DamagedHelmet.gltf]
|
|
|
|
vclear
|
|
vinit View1
|
|
XDisplay -dispMode 1 D
|
|
vaxo
|
|
vcamera -persp
|
|
vviewparams -scale 0.412548 -proj 0.54479 -0.790649 0.279424 -up -0.248339 0.166151 0.954317 -at -27.3419 382.603 -233.934
|
|
|
|
vtextureenv on 2
|
|
vlight -change 0 -intensity 2.5
|
|
vlight -change 1 -intensity 0.3
|
|
|
|
vrenderparams -shadingModel PBR
|
|
vdump ${imagedir}/${casename}_pbr.png
|
|
|
|
vrenderparams -ray -gi -rayDepth 10
|
|
vfps 200
|
|
vdump ${imagedir}/${casename}_pt.png
|