Unit CastleLoadGltf

Uses
Classes, Interfaces, Objects and Records
Functions and Procedures
Types
Constants

Description

Configuration of loading models in the glTF 2.0 format.

Overview

Variables

GltfForcePhongMaterials: Boolean = false;

Description

Variables

GltfForcePhongMaterials: Boolean = false;

Makes model loaded from glTF use Phong materials (TMaterialNode) instead of Physically-Based Rendering materials (TPhysicalMaterialNode).

Phong is a worse lighting model in general (less realistic, and most authoring tools now expose parameters closer to PBR, like Blender). However Phong lighting model is cheaper to compute, and it allows both Gouraud and Phong shading. And Phong lighting model combined with Gouraud shading is very cheap to render, which in effect means that your models render fast.

We just interpret glTF pbrMetallicRoughness parameter "baseColor" (RGB part) as Phong "diffuseColor".


Generated by PasDoc 0.16.0.