lanyizi / dxdecompiler Goto Github PK
View Code? Open in Web Editor NEWThis project forked from spacehamster/dxdecompiler
License: Other
This project forked from spacehamster/dxdecompiler
License: Other
v0
seems to be COLOR
instead of POSITION
in ps_2_0
.
I have a disassembled version of a shader. What should I do to decompile it?
Shader "SFX_SUB_G" {
Properties {
_Color ("Color", Color) = (2,2,2,1)
_Threshold ("Threshold", Float) = 0.0295
}
SubShader {
Tags { "ForceSupported"="true" "RenderType"="Overlay" }
Pass {
Tags { "ForceSupported"="true" "RenderType"="Overlay" }
ZWrite Off
Cull Off
Blend One One
BlendOp RevSub
GpuProgramID 39892
Program "vp" {
SubProgram "d3d9 " {
Bind "vertex" Vertex
Bind "color" Color
Matrix 0 [glstate_matrix_projection]
Vector 5 [_Color]
Vector 4 [_ProjectionParams]
"vs_2_0
def c6, 20, 1, 0, 0
dcl_position v0
dcl_color v1
mov r0.zw, c6.y
mov r1.x, c6.x
add r1.x, r1.x, c4.y
add r1.z, -r1.x, v0.z
mov r0.xy, -r1.z
mov r1.xyw, v0
dp4 r2.x, c0, r1
dp4 r2.y, c1, r1
dp4 r2.z, c2, r1
dp4 r2.w, c3, r1
mul r0, r0, r2
rcp r1.x, r0.w
mul r0, r0, r1.x
max r0.z, r0.z, c6.z
mov oPos.xyw, r0
min oPos.z, r0.z, c6.y
mul r0.xyz, v1, c5
mul oD0.xyz, r0, v1.w
mov oD0.w, c6.y
"
}
}
Program "fp" {
SubProgram "d3d9 " {
"ps_2_0
dcl v0
mov oC0, v0
"
}
}
}
}
Fallback "Diffuse"
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.