mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-19 18:11:39 -05:00
Added some example images for the pixel shader feature (#8962)
I added some sample screenshots on the README for the pixel shader feature Fixes #8960 ## Detailed Description of the Pull Request / Additional comments I created 4 screenshots using preview windows terminal, one for the default look, and three for the shaders mentioned in the readme. For the first shader, `Invert.hlsl`, I put it in a table and placed a screenshot of the default next to it. I don't think it would be clear what the shader did without being able to compare it against the default. For `Rasterbars.hlsl` I put a screenshot right after the code sample for it. I added a screenshot for `Retro.hlsl` just before the last sentence I also created a folder named Screenshots in `terminal/samples/Pixelshaders` to hold all of the screenshots.
This commit is contained in:
@@ -54,6 +54,12 @@ Save this file as `C:\temp\invert.hlsl`, then update a profile with the setting:
|
||||
|
||||
Once the settings file is saved, open a terminal with the changed profile. It should now invert the colors of the screen!
|
||||
|
||||
|
||||
Default Terminal | Inverted Terminal
|
||||
---------|---------
|
||||
 | 
|
||||
|
||||
|
||||
If your shader fails to compile, the Terminal will display a warning dialog and ignore it temporarily. After fixing your shader, touch the `settings.json` file again, or open a new tab, and the Terminal will try loading the shader again.
|
||||
|
||||
## HLSL
|
||||
@@ -130,7 +136,13 @@ float4 main(float4 pos : SV_POSITION, float2 tex : TEXCOORD) : SV_TARGET
|
||||
|
||||
Once reloaded, it should show some retro raster bars in the background, with a drop shadow to make the text more readable.
|
||||
|
||||

|
||||
|
||||
## Retro Terminal Effect
|
||||
|
||||
As a more complicated example, the Terminal's built-in `experimental.retroTerminalEffect` is included as the `Retro.hlsl` file in this directory. Feel free to modify and experiment!
|
||||
As a more complicated example, the Terminal's built-in `experimental.retroTerminalEffect` is included as the `Retro.hlsl` file in this directory.
|
||||
|
||||

|
||||
|
||||
Feel free to modify and experiment!
|
||||
|
||||
|
||||
BIN
samples/PixelShaders/Screenshots/TerminalDefault.PNG
Normal file
BIN
samples/PixelShaders/Screenshots/TerminalDefault.PNG
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 444 KiB |
BIN
samples/PixelShaders/Screenshots/TerminalInvert.PNG
Normal file
BIN
samples/PixelShaders/Screenshots/TerminalInvert.PNG
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 47 KiB |
BIN
samples/PixelShaders/Screenshots/TerminalRasterbars.PNG
Normal file
BIN
samples/PixelShaders/Screenshots/TerminalRasterbars.PNG
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 50 KiB |
BIN
samples/PixelShaders/Screenshots/TerminalRetro.PNG
Normal file
BIN
samples/PixelShaders/Screenshots/TerminalRetro.PNG
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 495 KiB |
Reference in New Issue
Block a user