///\authors:     Auto-generated by vray_to_mdl_export.ms script.
///\description: Translated VRay material.

mdl 1.6;

// Import
import ::anno::*;
import ::base::transform_coordinate;
import ::base::rotation_translation_scale;
import ::base::file_texture;
import ::base::mono_mode;
import ::base::texture_coordinate_info;
import ::base::texture_return;
import ::state::normal;
import ::state::texture_coordinate;
import ::state::texture_tangent_u;
import ::state::texture_tangent_v;
import ::tex::gamma_mode;
import ::tex::wrap_mode;
import .::templates::ad_3dsmax_materials::*;
import .::templates::ad_3dsmax_maps::*;
import .::templates::vray_materials::*;
import .::templates::vray_maps::*;

// Body
export material AM275_001_petal_001_F(*) 
[[
        anno::display_name("AM275_001_petal_001_F")
]]
= ::templates::vray_materials::VRayMtl(
        Diffuse : ::templates::ad_3dsmax_maps::ad_3dsmax_bitmap(
            filename : texture_2d("./AM275_001_petal_001/AM275_001_petal_001_F_Diffuse.png", ::tex::gamma_srgb),
            cliph : 1.0f,
            clipu : 0.0f,
            clipv : 0.0f,
            clipw : 1.0f,
            mono_output : ::templates::ad_3dsmax_maps::mono_output_rgb_intensity,
            rgb_output : ::templates::ad_3dsmax_maps::rgb_output_rgb,
            alpha_source : ::templates::ad_3dsmax_maps::alpha_source_alpha,
            mapChannel : 1,
            U_angle : 0.0f,
            U_Mirror : false,
            U_Offset : 0.0f,
            U_Tile : true,
            U_Tiling : 1.0f,
            UVW_Type : 0,
            V_angle : 0.0f,
            V_Mirror : false,
            V_Offset : 0.0f,
            V_Tile : true,
            V_Tiling : 1.0f,
            W_angle : 0.0f,
            alphaFromRGB : false,
            bump_amount : 1.0f,
            clamp : false,
            invert : false,
            output_amount : 1.0f,
            rgb_level : 1.0f,
            rgb_offset : 0.0f
        ).tint,
        diffuse_roughness : 0.0f,
        Reflection : color(1.0,1.0,1.0),
        reflection_glossiness : ::templates::ad_3dsmax_maps::ad_3dsmax_bitmap(
            filename : texture_2d("./AM275_001_petal_001/AM275_001_petal_001_Roughness.png", ::tex::gamma_linear),
            cliph : 1.0f,
            clipu : 0.0f,
            clipv : 0.0f,
            clipw : 1.0f,
            mono_output : ::templates::ad_3dsmax_maps::mono_output_rgb_intensity,
            rgb_output : ::templates::ad_3dsmax_maps::rgb_output_rgb,
            alpha_source : ::templates::ad_3dsmax_maps::alpha_source_alpha,
            mapChannel : 1,
            U_angle : 0.0f,
            U_Mirror : false,
            U_Offset : 0.0f,
            U_Tile : true,
            U_Tiling : 1.0f,
            UVW_Type : 0,
            V_angle : 0.0f,
            V_Mirror : false,
            V_Offset : 0.0f,
            V_Tile : true,
            V_Tiling : 1.0f,
            W_angle : 0.0f,
            alphaFromRGB : false,
            bump_amount : 1.0f,
            clamp : false,
            invert : false,
            output_amount : 1.0f,
            rgb_level : 1.0f,
            rgb_offset : 0.0f
        ).mono,
        reflection_fresnel : true,
        reflection_ior : 1.6f,
        reflection_lockIOR : true,
        invert_reflection_ior : false,
        reflection_metalness : ::templates::ad_3dsmax_maps::ad_3dsmax_bitmap(
            filename : texture_2d("./AM275_001_petal_001/AM275_001_petal_001_Metalic.png", ::tex::gamma_linear),
            cliph : 1.0f,
            clipu : 0.0f,
            clipv : 0.0f,
            clipw : 1.0f,
            mono_output : ::templates::ad_3dsmax_maps::mono_output_rgb_intensity,
            rgb_output : ::templates::ad_3dsmax_maps::rgb_output_rgb,
            alpha_source : ::templates::ad_3dsmax_maps::alpha_source_alpha,
            mapChannel : 1,
            U_angle : 0.0f,
            U_Mirror : false,
            U_Offset : 0.0f,
            U_Tile : true,
            U_Tiling : 1.0f,
            UVW_Type : 0,
            V_angle : 0.0f,
            V_Mirror : false,
            V_Offset : 0.0f,
            V_Tile : true,
            V_Tiling : 1.0f,
            W_angle : 0.0f,
            alphaFromRGB : false,
            bump_amount : 1.0f,
            clamp : false,
            invert : false,
            output_amount : 1.0f,
            rgb_level : 1.0f,
            rgb_offset : 0.0f
        ).mono,
        Refraction : color(0.0,0.0,0.0),
        refraction_glossiness : 1.0f,
        refraction_ior : 1.6f,
        invert_refraction_ior : false,
        refraction_dispersion_on : false,
        refraction_dispersion : 50.0f,
        refraction_fogColor : color(1.0,1.0,1.0),
        refraction_fogBias : 0.0f,
        refraction_fogMult : 1.0f,
        translucency_scatterCoeff : 0.0f,
        translucency_fbCoeff : 1.0f,
        translucency_color : color(1.0,1.0,1.0),
        self_illumination : color(0.0,0.0,0.0),
        self_illumination_multiplier : 1.0f,
        coat_amount : 0.0f,
        coat_color : color(1.0,1.0,1.0),
        coat_glossiness : 1.0f,
        coat_ior : 1.6f,
        invert_coat_ior : false,
        coat_bump_lock : false,
        sheen_color : color(0.392157,0.392157,0.392157),
        sheen_glossiness : 0.8f,
        brdf_type : ::templates::vray_materials::brdf_ggx,
        brdf_useRoughness : ::templates::vray_materials::brdf_roughness,
        anisotropy : 0.0f,
        anisotropy_rotation : 0.0f,
        anisotropy_channel : 1,
        texmap_bump : ::templates::vray_maps::VRayNormalMap_bump(
            normal_map : ::templates::ad_3dsmax_maps::ad_3dsmax_bitmap(
                filename : texture_2d("./AM275_001_petal_001/AM275_001_petal_001_Normal.png", ::tex::gamma_linear),
                cliph : 1.0f,
                clipu : 0.0f,
                clipv : 0.0f,
                clipw : 1.0f,
                mono_output : ::templates::ad_3dsmax_maps::mono_output_rgb_intensity,
                rgb_output : ::templates::ad_3dsmax_maps::rgb_output_rgb,
                alpha_source : ::templates::ad_3dsmax_maps::alpha_source_alpha,
                mapChannel : 1,
                U_angle : 0.0f,
                U_Mirror : false,
                U_Offset : 0.0f,
                U_Tile : true,
                U_Tiling : 1.0f,
                UVW_Type : 0,
                V_angle : 0.0f,
                V_Mirror : false,
                V_Offset : 0.0f,
                V_Tile : true,
                V_Tiling : 1.0f,
                W_angle : 0.0f,
                alphaFromRGB : false,
                bump_amount : 1.0f,
                clamp : false,
                invert : false,
                output_amount : 1.0f,
                rgb_level : 1.0f,
                rgb_offset : 0.0f
            ),
            normal_amount : 1.0f,
            bump_amount : 1.0f,
            flip_red : false,
            flip_green : false,
            swap_rg : false,
            map_channel : 1,
            map_rotation : 0.0f,
            normal_map_amount : 1.0f
        ),
        texmap_opacity : ::templates::ad_3dsmax_maps::ad_3dsmax_bitmap(
            filename : texture_2d("./AM275_001_petal_001/AM275_001_petal_001_Opacity.png", ::tex::gamma_srgb),
            cliph : 1.0f,
            clipu : 0.0f,
            clipv : 0.0f,
            clipw : 1.0f,
            mono_output : ::templates::ad_3dsmax_maps::mono_output_rgb_intensity,
            rgb_output : ::templates::ad_3dsmax_maps::rgb_output_rgb,
            alpha_source : ::templates::ad_3dsmax_maps::alpha_source_alpha,
            mapChannel : 1,
            U_angle : 0.0f,
            U_Mirror : false,
            U_Offset : 0.0f,
            U_Tile : true,
            U_Tiling : 1.0f,
            UVW_Type : 0,
            V_angle : 0.0f,
            V_Mirror : false,
            V_Offset : 0.0f,
            V_Tile : true,
            V_Tiling : 1.0f,
            W_angle : 0.0f,
            alphaFromRGB : false,
            bump_amount : 1.0f,
            clamp : false,
            invert : false,
            output_amount : 1.0f,
            rgb_level : 1.0f,
            rgb_offset : 0.0f
        ).mono
);

export material AM275_001_petal_001_B(*) 
[[
        anno::display_name("AM275_001_petal_001_B")
]]
= ::templates::vray_materials::VRayMtl(
        Diffuse : ::templates::ad_3dsmax_maps::ad_3dsmax_bitmap(
            filename : texture_2d("./AM275_001_petal_001/AM275_001_petal_001_F_Diffuse.png", ::tex::gamma_srgb),
            cliph : 1.0f,
            clipu : 0.0f,
            clipv : 0.0f,
            clipw : 1.0f,
            mono_output : ::templates::ad_3dsmax_maps::mono_output_rgb_intensity,
            rgb_output : ::templates::ad_3dsmax_maps::rgb_output_rgb,
            alpha_source : ::templates::ad_3dsmax_maps::alpha_source_alpha,
            mapChannel : 1,
            U_angle : 0.0f,
            U_Mirror : false,
            U_Offset : 0.0f,
            U_Tile : true,
            U_Tiling : 1.0f,
            UVW_Type : 0,
            V_angle : 0.0f,
            V_Mirror : false,
            V_Offset : 0.0f,
            V_Tile : true,
            V_Tiling : 1.0f,
            W_angle : 0.0f,
            alphaFromRGB : false,
            bump_amount : 1.0f,
            clamp : false,
            invert : false,
            output_amount : 1.0f,
            rgb_level : 1.0f,
            rgb_offset : 0.0f
        ).tint,
        diffuse_roughness : 0.0f,
        Reflection : color(1.0,1.0,1.0),
        reflection_glossiness : ::templates::ad_3dsmax_maps::ad_3dsmax_bitmap(
            filename : texture_2d("./AM275_001_petal_001/AM275_001_petal_001_Roughness.png", ::tex::gamma_linear),
            cliph : 1.0f,
            clipu : 0.0f,
            clipv : 0.0f,
            clipw : 1.0f,
            mono_output : ::templates::ad_3dsmax_maps::mono_output_rgb_intensity,
            rgb_output : ::templates::ad_3dsmax_maps::rgb_output_rgb,
            alpha_source : ::templates::ad_3dsmax_maps::alpha_source_alpha,
            mapChannel : 1,
            U_angle : 0.0f,
            U_Mirror : false,
            U_Offset : 0.0f,
            U_Tile : true,
            U_Tiling : 1.0f,
            UVW_Type : 0,
            V_angle : 0.0f,
            V_Mirror : false,
            V_Offset : 0.0f,
            V_Tile : true,
            V_Tiling : 1.0f,
            W_angle : 0.0f,
            alphaFromRGB : false,
            bump_amount : 1.0f,
            clamp : false,
            invert : false,
            output_amount : 1.0f,
            rgb_level : 1.0f,
            rgb_offset : 0.0f
        ).mono,
        reflection_fresnel : true,
        reflection_ior : 1.6f,
        reflection_lockIOR : true,
        invert_reflection_ior : false,
        reflection_metalness : ::templates::ad_3dsmax_maps::ad_3dsmax_bitmap(
            filename : texture_2d("./AM275_001_petal_001/AM275_001_petal_001_Metalic.png", ::tex::gamma_linear),
            cliph : 1.0f,
            clipu : 0.0f,
            clipv : 0.0f,
            clipw : 1.0f,
            mono_output : ::templates::ad_3dsmax_maps::mono_output_rgb_intensity,
            rgb_output : ::templates::ad_3dsmax_maps::rgb_output_rgb,
            alpha_source : ::templates::ad_3dsmax_maps::alpha_source_alpha,
            mapChannel : 1,
            U_angle : 0.0f,
            U_Mirror : false,
            U_Offset : 0.0f,
            U_Tile : true,
            U_Tiling : 1.0f,
            UVW_Type : 0,
            V_angle : 0.0f,
            V_Mirror : false,
            V_Offset : 0.0f,
            V_Tile : true,
            V_Tiling : 1.0f,
            W_angle : 0.0f,
            alphaFromRGB : false,
            bump_amount : 1.0f,
            clamp : false,
            invert : false,
            output_amount : 1.0f,
            rgb_level : 1.0f,
            rgb_offset : 0.0f
        ).mono,
        Refraction : color(0.0,0.0,0.0),
        refraction_glossiness : 1.0f,
        refraction_ior : 1.6f,
        invert_refraction_ior : false,
        refraction_dispersion_on : false,
        refraction_dispersion : 50.0f,
        refraction_fogColor : color(1.0,1.0,1.0),
        refraction_fogBias : 0.0f,
        refraction_fogMult : 1.0f,
        translucency_scatterCoeff : 0.0f,
        translucency_fbCoeff : 1.0f,
        translucency_color : color(1.0,1.0,1.0),
        self_illumination : color(0.0,0.0,0.0),
        self_illumination_multiplier : 1.0f,
        coat_amount : 0.0f,
        coat_color : color(1.0,1.0,1.0),
        coat_glossiness : 1.0f,
        coat_ior : 1.6f,
        invert_coat_ior : false,
        coat_bump_lock : false,
        sheen_color : color(0.392157,0.392157,0.392157),
        sheen_glossiness : 0.8f,
        brdf_type : ::templates::vray_materials::brdf_ggx,
        brdf_useRoughness : ::templates::vray_materials::brdf_roughness,
        anisotropy : 0.0f,
        anisotropy_rotation : 0.0f,
        anisotropy_channel : 1,
        texmap_bump : ::templates::vray_maps::VRayNormalMap_bump(
            normal_map : ::templates::ad_3dsmax_maps::ad_3dsmax_bitmap(
                filename : texture_2d("./AM275_001_petal_001/AM275_001_petal_001_Normal.png", ::tex::gamma_linear),
                cliph : 1.0f,
                clipu : 0.0f,
                clipv : 0.0f,
                clipw : 1.0f,
                mono_output : ::templates::ad_3dsmax_maps::mono_output_rgb_intensity,
                rgb_output : ::templates::ad_3dsmax_maps::rgb_output_rgb,
                alpha_source : ::templates::ad_3dsmax_maps::alpha_source_alpha,
                mapChannel : 1,
                U_angle : 0.0f,
                U_Mirror : false,
                U_Offset : 0.0f,
                U_Tile : true,
                U_Tiling : 1.0f,
                UVW_Type : 0,
                V_angle : 0.0f,
                V_Mirror : false,
                V_Offset : 0.0f,
                V_Tile : true,
                V_Tiling : 1.0f,
                W_angle : 0.0f,
                alphaFromRGB : false,
                bump_amount : 1.0f,
                clamp : false,
                invert : false,
                output_amount : 1.0f,
                rgb_level : 1.0f,
                rgb_offset : 0.0f
            ),
            normal_amount : 1.0f,
            bump_amount : 1.0f,
            flip_red : false,
            flip_green : false,
            swap_rg : false,
            map_channel : 1,
            map_rotation : 0.0f,
            normal_map_amount : 1.0f
        ),
        texmap_opacity : ::templates::ad_3dsmax_maps::ad_3dsmax_bitmap(
            filename : texture_2d("./AM275_001_petal_001/AM275_001_petal_001_Opacity.png", ::tex::gamma_srgb),
            cliph : 1.0f,
            clipu : 0.0f,
            clipv : 0.0f,
            clipw : 1.0f,
            mono_output : ::templates::ad_3dsmax_maps::mono_output_rgb_intensity,
            rgb_output : ::templates::ad_3dsmax_maps::rgb_output_rgb,
            alpha_source : ::templates::ad_3dsmax_maps::alpha_source_alpha,
            mapChannel : 1,
            U_angle : 0.0f,
            U_Mirror : false,
            U_Offset : 0.0f,
            U_Tile : true,
            U_Tiling : 1.0f,
            UVW_Type : 0,
            V_angle : 0.0f,
            V_Mirror : false,
            V_Offset : 0.0f,
            V_Tile : true,
            V_Tiling : 1.0f,
            W_angle : 0.0f,
            alphaFromRGB : false,
            bump_amount : 1.0f,
            clamp : false,
            invert : false,
            output_amount : 1.0f,
            rgb_level : 1.0f,
            rgb_offset : 0.0f
        ).mono
);

export material AM275_001_petal_001(*) 
[[
    anno::display_name("AM275_001_petal_001")
]]
= ::templates::vray_materials::VRay2SidedMtl(
    frontMtl : AM275_001_petal_001_F(),
    backMtl : AM275_001_petal_001_B(),
    use_backMtl : true,
    translucency : color(0.0,0.0,0.0),
    front_tint : ::templates::ad_3dsmax_maps::ad_3dsmax_bitmap(
        filename : texture_2d("./AM275_001_petal_001/AM275_001_petal_001_F_Diffuse.png", ::tex::gamma_srgb),
        cliph : 1.0f,
        clipu : 0.0f,
        clipv : 0.0f,
        clipw : 1.0f,
        mono_output : ::templates::ad_3dsmax_maps::mono_output_rgb_intensity,
        rgb_output : ::templates::ad_3dsmax_maps::rgb_output_rgb,
        alpha_source : ::templates::ad_3dsmax_maps::alpha_source_alpha,
        mapChannel : 1,
        U_angle : 0.0f,
        U_Mirror : false,
        U_Offset : 0.0f,
        U_Tile : true,
        U_Tiling : 1.0f,
        UVW_Type : 0,
        V_angle : 0.0f,
        V_Mirror : false,
        V_Offset : 0.0f,
        V_Tile : true,
        V_Tiling : 1.0f,
        W_angle : 0.0f,
        alphaFromRGB : false,
        bump_amount : 1.0f,
        clamp : false,
        invert : false,
        output_amount : 1.0f,
        rgb_level : 1.0f,
        rgb_offset : 0.0f
    ).tint,
    back_tint : ::templates::ad_3dsmax_maps::ad_3dsmax_bitmap(
        filename : texture_2d("./AM275_001_petal_001/AM275_001_petal_001_F_Diffuse.png", ::tex::gamma_srgb),
        cliph : 1.0f,
        clipu : 0.0f,
        clipv : 0.0f,
        clipw : 1.0f,
        mono_output : ::templates::ad_3dsmax_maps::mono_output_rgb_intensity,
        rgb_output : ::templates::ad_3dsmax_maps::rgb_output_rgb,
        alpha_source : ::templates::ad_3dsmax_maps::alpha_source_alpha,
        mapChannel : 1,
        U_angle : 0.0f,
        U_Mirror : false,
        U_Offset : 0.0f,
        U_Tile : true,
        U_Tiling : 1.0f,
        UVW_Type : 0,
        V_angle : 0.0f,
        V_Mirror : false,
        V_Offset : 0.0f,
        V_Tile : true,
        V_Tiling : 1.0f,
        W_angle : 0.0f,
        alphaFromRGB : false,
        bump_amount : 1.0f,
        clamp : false,
        invert : false,
        output_amount : 1.0f,
        rgb_level : 1.0f,
        rgb_offset : 0.0f
    ).tint,
    multiply_by_front_diffuse : false
);


