# Why Are Different Units Used in the Volumetric Cloud Shader as Highlighted in the Red Box

**URL:** <https://forums.unrealengine.com/t/why-are-different-units-used-in-the-volumetric-cloud-shader-as-highlighted-in-the-red-box/1870157>\
**Category:** Feedback & Requests\
**Tags:** unreal-engine, question\
**Created:** [May 24, 2024, 2:21am UTC](https://forums.unrealengine.com/t/why-are-different-units-used-in-the-volumetric-cloud-shader-as-highlighted-in-the-red-box/1870157 "2024-05-24T02:21:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anonymous\_b26e136f4fafa845ad7dbf3231436a26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_b26e136f4fafa845ad7dbf3231436a26](https://forums.unrealengine.com/u/Anonymous_b26e136f4fafa845ad7dbf3231436a26)\
**Post date:** [May 24, 2024, 2:21am UTC](https://forums.unrealengine.com/t/why-are-different-units-used-in-the-volumetric-cloud-shader-as-highlighted-in-the-red-box/1870157/1 "2024-05-24T02:21:55Z")

</div>

![图片](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/3/3/83316b809ad6782142c8a209f2568661e00ecfc0.png)

---

<div class="post-metadata">

**Author:** ![IronicParadox](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ironicparadox/32/1194531_2.png) [@IronicParadox](https://forums.unrealengine.com/u/IronicParadox)\
**Post date:** [May 24, 2024, 3:56am UTC](https://forums.unrealengine.com/t/why-are-different-units-used-in-the-volumetric-cloud-shader-as-highlighted-in-the-red-box/1870157/2 "2024-05-24T03:56:31Z")

</div>

That’s actually kind of odd because just a handful of lines above all that, you’ll see a variable called KILOMETER\_TO\_CENTIMETER scaling other things. While I didn’t check throughout the entire file, from the bit I did follow through, I didn’t see any obvious signs that the SampleTranslatedWorldPosition variable gets multiplied by KILOMETER\_TO\_CENTIMETER or some other number like 100000.

I tested out adding a \* KILOMETER\_TO\_CENTIMETER to it and it didn’t seem to make any apparent difference:

This is with the multiplier:

 ![with](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/7/d17243f20ff9f7fb02be1a0c508c49e0c9031039.jpeg)

This is without the multiplier:

 ![without](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/3/80352af87c26ae4f3f1842755f3299bf6299e9a3.jpeg)

The scene is a new level-\>environmental light mixer-\>click add on everything. I aimed the viewport to somewhere interesting and added a camera using the view. Any of the differences I’m seeing are just from the animation of the clouds.
