---
title: "Shader Properties"
url: "https://help.maxon.net/c4d/en-us/Content/html/XMG_CAMERA-ID_SHADERPROPERTIES.html"
section_path: "MoGraph > Shaders > Camera Shader > Shader Properties"
element_id: "XMG_CAMERA"
group_id: "ID_SHADERPROPERTIES"
description: "Drag the camera whose view the Camera Shader should assume here."
---

## Shader Properties

### Camera

Parameter ID: `MGCAMERASHADER_LINK`

Drag the camera whose view the [Camera Shader](https://help.maxon.net/c4d/en-us/Content/html/XMG_CAMERA.html.md) should assume here.

### Horizontal Scale

Parameter ID: `MGCAMERASHADER_HSCALE` · Range: [1..2147483647]

### Vertical Scale

Parameter ID: `MGCAMERASHADER_VSCALE` · Range: [1..2147483647]

If, for example, you would project a wide-angle camera onto a narrow plane the texture would appear skewed. This shader's settings can be used to deskew the texture. What this shader principally used for is to skew or deskew a projected camera image.

By default, Cinema 4D uses an aspect ratio of 1.333 (width to height). If your projection surface has a different aspect ratio it must be adjusted accordingly.

Use the following calculation to get a projection that is not skewed:

Determine the aspect ration (width:height), divide this value by 1.333 and multiply the result by **100**. Enter the result in the Horizontal Scale field (assuming both values were previously set to 100).

### Include Foreground

Parameter ID: `MGCAMERASHADER_CALC_FG`

### Include Background

Parameter ID: `MGCAMERASHADER_CALC_BG`

These settings define whether or not the [Camera Shader](https://help.maxon.net/c4d/en-us/Content/html/XMG_CAMERA.html.md) will include (i.e. display) the [Foreground Object](https://help.maxon.net/c4d/en-us/Content/html/OFOREGROUND.html.md) and [Background Object](https://help.maxon.net/c4d/en-us/Content/html/OBACKGROUND.html.md) when rendering.
