File size: 5,420 Bytes
3f4c166
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
///\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 mdl_0001::*;
import mdl_0002::*;
import mdl_0003::*;
import mdl_0004::*;

// Body
export material Material_001() 
[[
    anno::display_name("Material_001")
]]
= ::mdl_0003::VRayMtl(
    Diffuse : ::mdl_0002::ad_3dsmax_composite(
        blendMode1 : 14,
        map1 : ::mdl_0002::ad_3dsmax_bitmap(
            filename : texture_2d("folder_0000/image_0000.png", ::tex::gamma_srgb),
            cliph : 1.0f,
            clipu : 0.0f,
            clipv : 0.0f,
            clipw : 1.0f,
            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
        ),
        opacity1 : 200.0f,
        blendMode2 : 0,
        map2 : ::mdl_0002::ad_3dsmax_bitmap(
            filename : texture_2d("folder_0000/image_0001.png", ::tex::gamma_srgb),
            cliph : 1.0f,
            clipu : 0.0f,
            clipv : 0.0f,
            clipw : 1.0f,
            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
        ),
        opacity2 : 100.0f
    ).tint,
    diffuse_roughness : 0.0f,
    Reflection : ::mdl_0002::ad_3dsmax_bitmap(
        filename : texture_2d("folder_0000/image_0002.png", ::tex::gamma_srgb),
        cliph : 1.0f,
        clipu : 0.0f,
        clipv : 0.0f,
        clipw : 1.0f,
        mono_output : ::mdl_0002::mono_output_rgb_intensity,
        rgb_output : ::mdl_0002::rgb_output_rgb,
        alpha_source : ::mdl_0002::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,
    reflection_glossiness : 0.8f,
    reflection_fresnel : true,
    reflection_ior : 1.6f,
    reflection_lockIOR : true,
    invert_reflection_ior : false,
    reflection_metalness : 0.0f,
    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_on : ::mdl_0003::translucency_none,
    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.0,0.0,0.0),
    sheen_glossiness : 0.8f,
    brdf_type : ::mdl_0003::brdf_blinn,
    brdf_useRoughness : ::mdl_0003::brdf_glossiness,
    anisotropy : 0.0f,
    anisotropy_rotation : 0.0f,
    anisotropy_channel : 1,
    texmap_bump : ::mdl_0002::ad_3dsmax_bitmap_bump(
        filename : texture_2d("folder_0000/image_0003.png", ::tex::gamma_srgb),
        cliph : 1.0f,
        clipu : 0.0f,
        clipv : 0.0f,
        clipw : 1.0f,
        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,
        factor : 0.3f
    ),
    texmap_opacity : 1.0f
);