File size: 1,398 Bytes
4f4dced | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | mdl 1.4;
import ::anno::*;
export const string TRANSFORM_NONE = "NONE";
export const string TRANSFORM_UNORM_VECTOR = "UNORM_VECTOR";
export const string FORMAT_RGBA8_UNORM = "RGBA8_UNORM";
export const string FORMAT_R8_UNORM = "R8_UNORM";
export const string FORMAT_RGBA16_SFLOAT = "RGBA16_SFLOAT";
export const string BLEND_MODE_OPACITY = "opacity_blend";
export const string BLEND_MODE_REPLACE = "replace";
// This annotation is used to mark a material as target material for baking.
// It is that is detected by the MDL SDK and neuray.
export annotation target_material_model();
export annotation target_material_rendering(
string rendering_material_override = "" // if set, the baked material will be rendering using this material,
// otherwise the target itself is used
);
export annotation target_baked_argument(
// the name of the baked texture parameter in the rendering material
string baked_name,
// the name of the constant parameter in the rendering material in case baking was not necessary
string constant_name = "",
// texture format to bake to
string format = "",
// transformations, like encoding normals into [0,1] range
string transform = TRANSFORM_NONE,
// blending, e.g., based on alpha or replace
string blend_mode = BLEND_MODE_OPACITY
);
|