Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
1.0.0:default-material [2023/04/17 08:57] – [Adding new Textures at DesignTime] admin1.0.0:default-material [2023/04/17 08:59] (current) – [Adding new Textures at DesignTime] admin
Line 1481: Line 1481:
   * Choose where the texture will be available: PixelShader or VertexShader   * Choose where the texture will be available: PixelShader or VertexShader
  
-__//NOTICE://__The name will be important to access the texture in your shader!+__//NOTICE://__ The name will be important to access the texture in your shader!
  
 Due to Firemonkey implementation, you will access your texture with the **prefix "_"**. So for example, if you name your texture "**MyTexture**", you will Due to Firemonkey implementation, you will access your texture with the **prefix "_"**. So for example, if you name your texture "**MyTexture**", you will
 access it by "**_MyTexture**". access it by "**_MyTexture**".
 +
 +When you choose the shader your texture will be available, you can access it also at design time in the corresponding property:
 +
 +^ShaderKind^Property^
 +|PixelShader|<TGorillaDefaultMaterialSource>.SurfaceShader|
 +|VertexShader|<TGorillaDefaultMaterialSource>.VertexShader|
 +
  
 In the collection item you can configure further properties of your texture and you can of course load the image data itself. In the collection item you can configure further properties of your texture and you can of course load the image data itself.