Is there any shader that could show text on screen
- chipachipy
- Topic Author
the final result could be similar to this image
you can show clock ,fps or any text you want,and put it where you like and even edit the text style.
If there is already a shader like this please tell me
Please Log in or Create an account to join the conversation.
- chipachipy
- Topic Author
Please Log in or Create an account to join the conversation.
- Faustus86
chipachipy wrote: Hello?please replay
I can not open you Link so i don't know exactly what you are looking for.
The only Shader i know with this purpose is layer.fx
You can put there "what you want" (Watermark etc.) but it is a Single Image.
Please Log in or Create an account to join the conversation.
- chipachipy
- Topic Author
Please Log in or Create an account to join the conversation.
- DonaldDuckling
and make it a different image?
i have copied the shader and edited the layer source to the new image, but both layers load whatever the original layer.fx is referencing.
also maybe keep the aspect ratio of the image? or allow scaling on separate x and y axis .
Please Log in or Create an account to join the conversation.
- Marot
Scaling should preserve aspect ratio at the moment, but you'll need to modify the following accordingly in the second copy:DonaldDuckling wrote: hello, i don't want to start a new topic, but is there a way to use more than one layer.fx?
and make it a different image?
i have copied the shader and edited the layer source to the new image, but both layers load whatever the original layer.fx is referencing.
also maybe keep the aspect ratio of the image? or allow scaling on separate x and y axis .
#ifndef LAYER_SOURCE
#define LAYER_SOURCE "layer.png"
#endif
#ifndef LAYER_SIZE_X
#define LAYER_SIZE_X 1280
#endif
#ifndef LAYER_SIZE_Y
#define LAYER_SIZE_Y 720
#endif
And also rename the second one's technique to something other than Layer:
technique Layer
{
pass
{
VertexShader = PostProcessVS;
PixelShader = PS_Layer;
}
}
Please Log in or Create an account to join the conversation.
- DonaldDuckling
Please Log in or Create an account to join the conversation.