VRay SDK for C++
Loading...
Searching...
No Matches
VRay::ScannedMaterialPreset Struct Reference

#include <vraysdk.hpp>

Public Types

enum  SmoothModelFlags { SMF_FORCE = 1 , SMF_PS = 4 }
 

Public Member Functions

 ScannedMaterialPreset ()
 The large feature map physical size.
 

Public Attributes

float bumpmul
 Plain materials strategy.
 
float bumpstart
 Bump multiplier for the inclined views.
 
float ccbump
 Displacement multiplier.
 
float ccior
 
float ccmetalrefl
 Multiplier of the indirect light, used to handle the fluorescent materials by putting value below 1 in this member.
 
float ccmul
 
float depthmul
 The z-value of the view vector below which bump is gradualy applied.
 
int flakes
 Brightness multiplier for self shadowing.
 
int forcebrdf
 Used to render materials with sharp sparks, a procedural map with relative size this param is used to feed the RR sampling.
 
float free4
 the material thumnail relative offset - this is kind of a hack, using the place of an old obsolete parameter to get fast access to the material thumbnail
 
float free5
 
float free6
 
float free7
 CC specular multiplier (Not used anymore)
 
float fuzzy
 Controls the pure reflective behavior for inclined angles, a feature typical for brushed metal.
 
float indmul
 When flakes is nonzero (spark mode) this parameter specifies to not scramble the uv coordinates.
 
int keepflakesuv
 Not used anymore (set to 1)
 
float lfsizecm
 value used to control the function converting translucency to transparency
 
float orggls
 Clear coat noise-like bump amount (there is separate hmap bump)
 
float orgglvar
 the clear coat glossiness the inverse angle deviation width (60 is one degree), since 20.04.21 this is real preset, but the old materials use specbell
 
int plain
 ClearCoat index of reflection.
 
float scratchdens
 
float shdhmul
 Clear coat effect multiplier.
 
float shdmul
 Height multiplier for self shadowing.
 
float specbell
 Controls how to use the smooth brdf model.
 
float specmul
 CC specular highlights, inverse bell width (60 is one degree)
 
float thickness
 
int thumbpos
 the clearcoat glossiness variation (0-none 1-the shallow anglesare glossy), since 20.04.21 this is real preset, but the old materials use scratchdens
 
float topvLs_A
 Used mostly with top view fabrics, modifies the rendering of the inclined views making them blurred and fuzzy.
 
float topvLs_B
 Used in top view materials to control the light direction correction.
 
float transpf
 used to force triplanar mapping when certain customer has old vray (luxottica)
 
int triplanar
 The sample thickness in mm, used to introduce alpha/translucency correction of thick materials.
 

Detailed Description

A structure containing some parameter values considered optimal for the rendering of the material for example the ccior, you can add clear coat to any material by the UI, but the car paints should have ior by default, so in this structure we keep the values that must be set when the material is just created. Not all the members are used, this is because the structure is stored in the file as single block and removing a member will destroy the compatibility. Not all the members have corresponding member in the VRScansPrm, this is because it's considered pointless to make them tweakable, for example the flakes member is used directly, it's not tweakable.

Member Enumeration Documentation

◆ SmoothModelFlags

Enumerator
SMF_FORCE 

used in forcebrdf

SMF_PS 

when set, the BRDF is "forced"


The documentation for this struct was generated from the following file: