MAXScript Language Reference > 3ds Max Objects > TextureMap : Material > TextureMap Types >

# Reflect_Refract : TextureMap

    Reflect_Refract - superclass: textureMap; super-superclass:material - classID: #(592, 0)

Value > MAXWrapper > Material > TextureMap > Reflect_Refract

| Materials and Maps - Quick Navigation

Constructor

    Reflect_Refract ...
    reflectRefract...

Properties

    <Reflect_Refract>.source Integer default: 0

Chooses the source of the six cubic maps:

0- Automatic (Automatically generates by looking out in six directions from the pivot of the object with the material, then mapped onto the surface during rendering. When on, the options in the Automatic group are active, letting you choose whether the maps will be generated only once, or regenerated at specified frames in the animation.)

1- From File (When on, you can specify the bitmaps to use.)

    <Reflect_Refract>.size Integer default: 100 -- animatable

Sets the size of the Reflect/Refract maps. The default value of 100 produces distinct images. Lower values lose progressively more detail.

    <Reflect_Refract>.useAtmosphericMap Boolean default: true -- alias: Use_Atmospheric

When off, environment maps are ignored by Reflect/Refract map during rendering.

It’s useful to turn this off when you have mirrors in the scene and you’re rotoscoping against a flat screen environment map.

A screen environment map does not exist in 3D space the way the other environment-map types do, and will not render properly.

    <Reflect_Refract>.apply Boolean default: true

Turns on filtering to blur the maps.

    <Reflect_Refract>.blurOffset Float default: 0.0 -- animatable, alias: Blur_Offset

Affects the sharpness or blurriness of the map without regard to its distance from the object.

Use this when you want to soften or defocus the details in a map to achieve the effect of a blurred image.

    <Reflect_Refract>.blur Float default: 1.0 -- animatable

Affects the sharpness or blurriness of the generated map based on its distance from the object.

The farther away the map is, the greater the blurring.

Blur is primarily used to avoid aliasing.

It’s a good idea to use a small amount of blurring for all maps in order to avoid the scintillation or aliasing that can occur when pixel details are reduced off in the distance.

    <Reflect_Refract>.near Float default: 0.0 -- animatable, alias: Near_Value

Sets the near range for fog.

    <Reflect_Refract>.far Float default: 500.0 -- animatable, alias: Far_Value

Sets the far range for fog.

    <Reflect_Refract>.frametype Integer default: 0

Sets the frame type:

0- First Frame Only (Tells the renderer to create automatic maps only on the first frame.)

1- Every Nth Frame (Tells the renderer to create animated auto maps based on nthframe .)

    <Reflect_Refract>.nthframe Integer default: 1

Sets the frame rate for automatic maps.

    <Reflect_Refract>.bitmapName FilenameArraydefault: #(undefined, ... , undefined)

Array with 6 elements. Each element stores a string reflecting the name of a source bitmap file.

    <Reflect_Refract>.outputname Filenamedefault: undefined, alias: Output_Name

#### See Also

- TextureMap Common Properties, Operators, and Methods

- Material Common Properties, Operators, and Methods

- MAXWrapper Common Properties, Operators, and Methods

- Value Common Properties, Operators, and Methods