Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
1.0.0:default-material [2023/04/17 08:54] – [Adding new Textures at DesignTime] admin | 1.0.0:default-material [2023/04/17 08:59] (current) – [Adding new Textures at DesignTime] admin | ||
---|---|---|---|
Line 1474: | Line 1474: | ||
Move inside the object inspector to the specific material source (inherited from TGorillaDefaultMaterialSource). | Move inside the object inspector to the specific material source (inherited from TGorillaDefaultMaterialSource). | ||
- | The open the design editor of the " | ||
- | The name will be important to access the texture in your shader. | + | __Steps: |
+ | * Open the design editor of the " | ||
+ | * Add a new item | ||
+ | * Input a name for the texture | ||
+ | * Choose where the texture will be available: PixelShader or VertexShader | ||
+ | |||
+ | __// | ||
Due to Firemonkey implementation, | Due to Firemonkey implementation, | ||
access it by " | access it by " | ||
+ | |||
+ | 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|< | ||
+ | |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. | ||
Line 1486: | Line 1498: | ||
__// | __// | ||
+ | |||
+ | === Availabled Properties === | ||
^Property^Descr^ | ^Property^Descr^ |