GUI image implementation, player hotbar
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import "includes/math";
|
||||
import "includes/structs";
|
||||
|
||||
struct Varyings {
|
||||
@@ -48,6 +49,6 @@ Varyings vertexMain(uint vertexID : SV_VulkanVertexID, uint instanceID : SV_Vulk
|
||||
[shader("fragment")]
|
||||
float4 fragmentMain(Varyings frag) : SV_Target {
|
||||
let image = _Images[frag.instance];
|
||||
let texel = _Textures[image.texture].Sample(_Sampler, frag.texCoord);
|
||||
let texel = texture2DAA(_Textures[image.texture], _Sampler, frag.texCoord);
|
||||
return texel * image.tint;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user