
the shader used in TowerDrop is an updated version of the Mighty Duck, that game ran on the legacy pipeline. Tower Drop uses lightweight Render Pipeline. so i had to update the shader to work with it. this shader is based on Unity’s Lightweight Lit Shader.
there was an issue with converting between the two pipelines for example methods for retrieving view direction does not exists in LWRP so i had to calculate that my self. Unity’s documentation is outdated as it only covers the legacy pipeline.
after some research into how to go about solving it, this is the solution i came up with for that problem
Core.hlsl contains a struct that store information of the view space position of an object. and the method to retrieve it. the solution i came up with for that was this.
mul((half3x3)unity_CameraToWorld,vInput.positionVS.xyz);
it appears to return the correct the result for my purposes.