123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- {
- "description": "Simple material for comparing the performance of hard-coded C++ material functors.",
- "version": 3,
- "propertyLayout": {
- "groups": [
- {
- "id": "emissive",
- "displayName": "Settings"
- }
- ],
- "properties": {
- "emissive": [
- {
- "id": "unit",
- "displayName": "Units",
- "description": "The photometric units of the Intensity property.",
- "type": "Enum",
- "enumValues": ["Ev100"],
- "defaultValue": "Ev100"
- },
- {
- "id": "color",
- "displayName": "Color",
- "description": "Color is displayed as sRGB but the values are stored as linear color.",
- "type": "Color",
- "defaultValue": [ 1.0, 1.0, 1.0 ],
- "connection": {
- "type": "ShaderInput",
- "id": "m_emissiveColor"
- }
- },
- {
- "id": "intensity",
- "displayName": "Intensity",
- "description": "The amount of energy emitted.",
- "type": "Float",
- "defaultValue": 4,
- "min": -10,
- "max": 20,
- "softMin": -6,
- "softMax": 16
- },
- {
- "id": "textureMap",
- "displayName": "Texture Map",
- "description": "Texture map for defining emissive area.",
- "type": "Image",
- "connection": {
- "type": "ShaderInput",
- "id": "m_emissiveMap"
- }
- },
- {
- "id": "useTexture",
- "displayName": "Use Texture",
- "description": "Whether to use the texture map.",
- "type": "Bool",
- "defaultValue": true
- }
- ]
- }
- },
- "shaders": [
- {
- "file": "./EmissiveMaterial.shader"
- },
- {
- "file": "Shaders/Shadow/Shadowmap.shader"
- },
- {
- "file": "Shaders/Depth/DepthPass.shader"
- }
- ],
- "functors": [
- {
- "type": "ConvertEmissiveUnit",
- "args": {
- "intensityProperty": "emissive.intensity",
- "lightUnitProperty": "emissive.unit",
- "shaderInput": "m_emissiveIntensity",
- "ev100Index": 0,
- "nitIndex" : 1,
- "ev100MinMax": [-10, 20],
- "nitMinMax": [0.001, 100000.0],
- "shaderParameters": [
- {
- "name": "m_emissiveIntensity",
- "type": "float"
- }
- ]
- }
- },
- {
- "type": "UseTexture",
- "args": {
- "textureProperty": "emissive.textureMap",
- "useTextureProperty": "emissive.useTexture",
- "shaderOption": "o_emissive_useTexture"
- }
- }
- ]
- }
|