<desc>X coordinate at which to check the material. Offset in local calls.</desc>
</param>
<param>
<type>int</type>
<name>y</name>
<desc>Y coordinate at which to check the material. Offset in local calls.</desc>
</param>
</params>
</syntax>
<desc>Determines the material type at the specified position in the landscape. Returns a material index which can be used for comparison e.g. with <funclink>Material</funclink>. For sky areas the function returns -1.</desc>
<remark>This functions only processes static materials - moving material pixels such as rain or snow are not evaluated.</remark>