mdl 1.3;

import ::adobe::mtl::standard;
import ::anno::*;
import ::base::file_texture;
import ::base::mono_mode;
import ::base::rotation_translation_scale;
import ::base::tangent_space_normal_texture;
import ::base::texture_coordinate_info;
import ::base::texture_return;
import ::base::transform_coordinate;
import ::state::texture_coordinate;
import ::state::texture_tangent_u;
import ::state::texture_tangent_v;
import ::tex::gamma_mode;
import ::tex::wrap_mode;
import ::state::normal;


export material MATERIAL_FABRIC(*)
= ::adobe::mtl::standard(
	baseColor: ::base::file_texture(
	texture: texture_2d("FABRIC_baseColor_$udim.png", ::tex::gamma_srgb),
	color_offset: color(0.f, 0.f, 0.f),
	color_scale: color(1.f, 1.f, 1.f),
	mono_source: ::base::mono_average,
	uvw: ::base::transform_coordinate(
		::base::rotation_translation_scale(float3(0.f), float3(0.f), float3(1.f)),
		::base::texture_coordinate_info(::state::texture_coordinate(0), ::state::texture_tangent_u(0), ::state::texture_tangent_v(0))
	),
	crop_u: float2(0.f, 1.f),
	crop_v: float2(0.f, 1.f),
	wrap_u: ::tex::wrap_repeat,
	wrap_v: ::tex::wrap_repeat,
	clip: false
).tint,
roughness: ::base::file_texture(
	texture: texture_2d("FABRIC_roughness_$udim.png", ::tex::gamma_linear),
	color_offset: color(0.f, 0.f, 0.f),
	color_scale: color(1.f, 1.f, 1.f),
	mono_source: ::base::mono_average,
	uvw: ::base::transform_coordinate(
		::base::rotation_translation_scale(float3(0.f), float3(0.f), float3(1.f)),
		::base::texture_coordinate_info(::state::texture_coordinate(0), ::state::texture_tangent_u(0), ::state::texture_tangent_v(0))
	),
	crop_u: float2(0.f, 1.f),
	crop_v: float2(0.f, 1.f),
	wrap_u: ::tex::wrap_repeat,
	wrap_v: ::tex::wrap_repeat,
	clip: false
).mono,
metallic: ::base::file_texture(
	texture: texture_2d("FABRIC_metallic_$udim.png", ::tex::gamma_linear),
	color_offset: color(0.f, 0.f, 0.f),
	color_scale: color(1.f, 1.f, 1.f),
	mono_source: ::base::mono_average,
	uvw: ::base::transform_coordinate(
		::base::rotation_translation_scale(float3(0.f), float3(0.f), float3(1.f)),
		::base::texture_coordinate_info(::state::texture_coordinate(0), ::state::texture_tangent_u(0), ::state::texture_tangent_v(0))
	),
	crop_u: float2(0.f, 1.f),
	crop_v: float2(0.f, 1.f),
	wrap_u: ::tex::wrap_repeat,
	wrap_v: ::tex::wrap_repeat,
	clip: false
).mono,
opacity: ::base::file_texture(
	texture: texture_2d("FABRIC_opacity_$udim.png", ::tex::gamma_linear),
	color_offset: color(0.f, 0.f, 0.f),
	color_scale: color(1.f, 1.f, 1.f),
	mono_source: ::base::mono_average,
	uvw: ::base::transform_coordinate(
		::base::rotation_translation_scale(float3(0.f), float3(0.f), float3(1.f)),
		::base::texture_coordinate_info(::state::texture_coordinate(0), ::state::texture_tangent_u(0), ::state::texture_tangent_v(0))
	),
	crop_u: float2(0.f, 1.f),
	crop_v: float2(0.f, 1.f),
	wrap_u: ::tex::wrap_repeat,
	wrap_v: ::tex::wrap_repeat,
	clip: false
).mono,
glow: ::base::file_texture(
	texture: texture_2d("FABRIC_glow_$udim.png", ::tex::gamma_srgb),
	color_offset: color(0.f, 0.f, 0.f),
	color_scale: color(1.f, 1.f, 1.f),
	mono_source: ::base::mono_average,
	uvw: ::base::transform_coordinate(
		::base::rotation_translation_scale(float3(0.f), float3(0.f), float3(1.f)),
		::base::texture_coordinate_info(::state::texture_coordinate(0), ::state::texture_tangent_u(0), ::state::texture_tangent_v(0))
	),
	crop_u: float2(0.f, 1.f),
	crop_v: float2(0.f, 1.f),
	wrap_u: ::tex::wrap_repeat,
	wrap_v: ::tex::wrap_repeat,
	clip: false
).mono,
normal: ::base::tangent_space_normal_texture(
	texture: texture_2d("FABRIC_normal_$udim.png", ::tex::gamma_linear),
	factor: 1.f,
	flip_tangent_u: false,
	flip_tangent_v: false,
	uvw: ::base::transform_coordinate(
		::base::rotation_translation_scale(float3(0.f), float3(0.f), float3(1.f)),
		::base::texture_coordinate_info(::state::texture_coordinate(0), ::state::texture_tangent_u(0), ::state::texture_tangent_v(0))
	),
	crop_u: float2(0.f, 1.f),
	crop_v: float2(0.f, 1.f),
	wrap_u: ::tex::wrap_repeat,
	wrap_v: ::tex::wrap_repeat,
	clip: false,
	scale: 1.f,
	offset: 1.f
)
);

