GoDot – Visual Shader – 2D – Disolve

This visual shader features a disolve/resolve functionality, based on this Unity video. The reference shader hasn’t been converted 1 by 1, since GoDot does lack a lot of visual shader components. Parameters Border-Size: Defines how thick the desolve/resolve border should be Border-Color: The color of the desolve/resolve border GravityFactor: A factor multiplied by the Gravity …

Outline Shader

Actually I think the outline shader for a 2D game is kinda unnecessary. The loaded sprite can already be shipped with an outline. (Or, one sprite with and one sprite without an outline; if both are required) However, I kinda find it neat to dynamically apply an outline to whatever object I want to. Fundamental …

Empty Vertex + Pixel Shader

Structure The code starts with #defines we already know from C or C++. We basically map HLSL and GLSL constants (shader and vertex models, etc.) into a variable; beeing chosed during the compile time, in order to support HLSL and GLSL in one single .fx file. #if OPENGL #define SV_POSITION POSITION #define VS_SHADERMODEL vs_3_0 #define …

RSA En/Decryption

Public/Private Key Generation The private and the corresponding public key can be generated RSAKeyGeneration.Generate(); Private and public key can be passed to the factories. However, if you choose a factory method with no public/private key parameter, they will be automatically generated. Enable RSA En/Decryption Use the ConnectionFactory to create a secure connection. ConnectionFactory.CreateSecureClientConnectionContainer(… ConnectionFactory.CreateSecureServerConnectionContainer(… ConnectionFactory.CreateSecureTcpConnection(… …

Network Library 5.1.0.5

We face many new changes with the 5.1 version release. .NET 4.5 isn’t supported anymore. Use 5.0 < versions of the library for .NET 4.5 projects .NET version has been increased to 4.6 RSA Support for .NET 4.5/4.6 and .NET Standard 2.0 RSA Example with public/private key Removed all local assemblies Directly depending on other …